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?
OpenVPN and PiHole on Raspberry Pi
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Jul 15, 2022 4:51 am
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN and PiHole on Raspberry Pi
May be you forgot to enable IP Forwarding .. ?
- openvpn_inc
- OpenVPN Inc.
- Posts: 1332
- Joined: Tue Feb 16, 2021 10:41 am
Re: OpenVPN and PiHole on Raspberry Pi
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
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

Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support