wirehole icon indicating copy to clipboard operation
wirehole copied to clipboard

ServerIP - pihole

Open ghost opened this issue 3 years ago • 3 comments

why does the docker compose file set the ServerIP environment variable in the pihole configuration to 10.1.0.100 (ServerIP: 10.1.0.100 # Internal IP of pihole, line 67)? Shouldn't this value be set to 10.2.0.100? Also can you explain the purpose of this variable? The official pi-hole documentation on this subject is lacking at best and the default value they use is 127.0.0.1 (pi-hole itself). under what circumstances would you not point directly back to pi-hole? I am having a very difficult time coming up with a plausible reason for using 10.1.0.100 ... Thank you

ghost avatar Jun 19 '21 13:06 ghost

You found the answer?

Robin-Sch avatar Jul 20 '21 15:07 Robin-Sch

no I still do not understand this. I was hoping the author of the docker-compose file would provide some insight

ghost avatar Jul 22 '21 16:07 ghost

This is the IP that the pihole web server for the UI will listen on. Setting it to 10.1 means wireguard clients will be able to access it. Setting it to 10.2 would mean only clients in the compose private network can access it which would be useless. It's not even necessary to set unless you specifically want to only allow VPN clients to manage the DNS

wizzomafizzo avatar Jul 23 '21 12:07 wizzomafizzo