OpenVPN and PiHole on Raspberry Pi

Need help configuring your VPN? Just post here and you'll get that help.

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.
Post Reply
WalkerHunter
OpenVpn Newbie
Posts: 1
Joined: Fri Jul 15, 2022 4:51 am

OpenVPN and PiHole on Raspberry Pi

Post by WalkerHunter » Fri Jul 15, 2022 2:09 pm

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?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN and PiHole on Raspberry Pi

Post by TinCanTech » Fri Jul 15, 2022 2:18 pm

May be you forgot to enable IP Forwarding .. ?

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: OpenVPN and PiHole on Raspberry Pi

Post by openvpn_inc » Wed Jul 20, 2022 6:46 pm

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
Image OpenVPN Inc.
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

Post Reply