Closed GogoFC closed 2 years ago
Hi,
please add to file "openvpn.conf" in folder "setup" the following at the end
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"
and add to "client.conf.tpl" in folder "templates" folowing after remote-cert-tls server
:
ignore-unknown-option block-outside-dns
block-outside-dns
run again start.sh to rebuild containers
Based on that idea I want to add pihole service in the docker-compose file. I added the service like so:
The pihole service works ok and I can see the web panel, in the openvpn.conf
I added the DNS with push "dhcp-option DNS 172.19.2.1"
, I updated the client.conf.tpl
file as shown.
Then I recreated the containers but know in the client side the DNS queries don't pass through pihole (and I can't resolve any page) the problem I think is that the IP from the pihole container isn't “visible” through the VPN tunnel. How I can resolve that ???
Found it, i had to add push "route 172.19.0.0 255.255.0.0"
in the openvpn.conf
file and add route in the ovpn-admin panel
I did the docker install, admin panel works fine, downloads config, connects to VPN server, but no DNS.
The network device at the end gets created, does that look about right? Do I need to set DNS somewhere? resolv conf has 8.8.8.8