PiHole Working for PiVPN but not in network

Please follow the below template, it will help us to help you!

Expected Behaviour:

Working as a DNS server.

Actual Behaviour:

It worked fine for a couple of days. Then, when i updated this morning it stopped working immediatly.
It works for the (local) PiVPN server, but it doesn't respond to request from another local IP in the local network.
I tried rebooting, then reverting. Neither seem to do the trick.

Debug Token:

e1kgug8p35

You want to make sure that the Interface listening Behavior is enabled to listen to all interfaces not only to the VPN tunnel.

image

(Under Setting / DNS)

That might be an issue if your pi-hole is opened to the public (to be more precise, if you expose port 53 to the world)

it's not a good idea to do that (open 53 to the world) because you will be most likely turned into a victim for DNS reflection/amplification attacks.

That was actually the first thing i tried. Doesn't help.
Also in my setupvars i already added the interface:
PIHOLE_INTERFACE=eth0
PIHOLE_INTERFACE=tun0

try a pihole -r go for reconfigure and when prompted within the setup, select the eth0 interface.

Once is installed, modify the listening interface to all.

what is the DNS IP being pushed within your vpn configuration ?

I tried all the standard things, but i just had some inspiration, and fixed it.
For some reason switching the order of the interfaces seems to have done the trick.
From:
PIHOLE_INTERFACE=eth0
PIHOLE_INTERFACE=tun0
To:
PIHOLE_INTERFACE=tun0
PIHOLE_INTERFACE=eth0

And i kept my listening interfaces to "eth0"
DNSMASQ_LISTENING=single

Thanks all for thinking along with me :slight_smile:

The DNS within my VPN is: push "dhcp-option DNS 10.8.0.1"

TEMPERATUREUNIT=C
WEBUIBOXEDLAYOUT=boxed
PIHOLE_INTERFACE=tun0
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.109/24
IPV6_ADDRESS=
QUERY_LOGGING=true
INSTALL_WEB=true
LIGHTTPD_ENABLED=1
DNSMASQ_LISTENING=single
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSSEC=false
CONDITIONAL_FORWARDING=false

I see someone had to tweak it like that before under

It's crazy though.

I am running 3 pi-holes and 2 VPN servers and I never had to do it like this. It always worked with setting the listening interface to all.

I only have the one interface in /etc/pihole/setupVars.conf

image

It worked fine for me this morning, but after i pushed the update to 3.3.1 it just stopped working. It works again now, so i'm happy again :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.