Page 1 of 1

OpenVPN and PiHole on Raspberry Pi

Posted: Fri Jul 15, 2022 2:09 pm
by WalkerHunter
I use OpenVPN as a gateway router on a Raspberry Pi. PiHole DNS is running on the same Pi.
OpenVPN in the /etc/resolv.conf file direct DNS to the PiHole.

When I configure my PC to use the Pi as a gateway, and configure my PC to use PiHole as DNS server, the traffic stops.
How do I configure OpenVPN to play nicely with PiHole?

Re: OpenVPN and PiHole on Raspberry Pi

Posted: Fri Jul 15, 2022 2:18 pm
by TinCanTech
May be you forgot to enable IP Forwarding .. ?

Re: OpenVPN and PiHole on Raspberry Pi

Posted: Wed Jul 20, 2022 6:46 pm
by openvpn_inc
Hi WH,

Use dig(1) to troubleshoot DNS queries. Tools like ping(1) and traceroute(1) can help to troubleshoot basic network issues.

OpenVPN plays nicely with any type of DNS server. There's nothing here to go on. It could be as Tin said, or maybe lack of SNAT? Did you read the HOWTO? See also this post about --redirect-gateway issues.

regards, rob0