I installed Pihole 1 time and i thought I got it to work. Then I looked more into the DNS part of setting it up, and found that the traffic didn't go through my Pihole, but my router instead, like normal. I then re-imaged the SDcard with PiOS Lite 64-bit headless. I have installed Pihole using the official curl command curl -sSL ... through SSH on my windows 11 laptop
I do not use docker. I use SSH to handle the Pihole from my laptop, and My Raspberry pi is physically connected to my home router with ethernet cabel. I just reset my Wi-Fi so that I can try again. I need help please.
I need to make sure traffic goes through the Pihole, and that its configured correctly
Windows 11 Home Edition
Raspberry Pi 5 8GB
Docker compose file or Docker run command
Docker engine version
Actual Behaviour:
I think its installed, but that's pretty much it(?) I'm unsure of the rest.
Thank again for the reply and giving me the way on how to solve this!
I do have a question about your choice of the IP pool. Is this random selected, or is there a logic behind the specific 1.2 - 1.254?
Can I change my Pi's IP to for example 192.168.1.55 If my router has 192.168.1.1?
When I type hostname -I it shows the IP set from my router, is this correct? And this IP I can change in nmtui to a static IP of for example 192.168.1.120?
You can use any range you want. It was an example.
Yes.
We usually recommend to reserve IP addresses from outside the pool range, but when I used the router simulator, apparently this router works differently and the reserved addresses must belong to the address pool, so any IP between start and end address will work.
If the router is the DHCP server, than this is correct.
You don't need to do that if you follow my recommendation to set a DHCP reservation for Pi-hole, on the router.
If you decide to set a static IP using nmtui, then you need to use an IP outside the DHCP range (to avoid conflicts) and you don't set a DHCP reservation on the router.
It is one or the other. Or a static IP set via nmtui, or a DHCP reservation. Also, the machine needs only one IP: or 192.168.1.55, or 192.168.1.120.
I set up port 22 only to be allowed access from my yesterdays IP adress for my laptop. Changed my IP back to that and now I'm in. Thank you for your help and guidance!