Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pihole DNS not working #13

Closed
brent0np opened this issue Sep 6, 2019 · 7 comments
Closed

pihole DNS not working #13

brent0np opened this issue Sep 6, 2019 · 7 comments

Comments

@brent0np
Copy link

brent0np commented Sep 6, 2019

Problem/Motivation

I have followed the documentation to configure the addon, and like the forum I am also having issues. I have access to both and Android and iPhone I can use to test.

Expected behaviour

I expected to see the VPN client address (172.27.66.2 (android) or 172.27.66.3 (iPhone)) appear as a pihole client, or in the pihole network overview and for traffic to be filtered/reported in pihole.

Actual behaviour

When connected to the VPN using the android handset both the VPN client on the phone and the log in the hassio addon shows traffic sent/received for the relevant IP address. If I access ipchicken.com from the android handset (while disconnected from my home wifi but connected to the VPN) it shows my home internet connections IP address correctly. I also used the android app pingtools while connected to the VPN. It showed only one DNS server configured and a traceroute to google.com on the VPN worked using the expected route on the VPN, but still is not filtered by pihole.

With the iPhone, if I turn off wifi and then connect to the vpn I don't get any internet at all - which means I can't hit ipchicken.com. I do see traffic stats in both the addon log and the VPN client on the iPhone and I can ping the ip address of the VPN specified DNS.

The bits I can't figure out;

  • Why the android device can access the internet and the iPhone can't
  • Why pihole doesn't recognise any of the VPN clients or the VPN network anywhere, but I can't successfully ping the ip address of the VPN specified DNS address.

Steps to reproduce

Install the addon following the documentation. I have removed everything and reinstalled it twice to ensure I didn't miss anything.

Proposed changes

I suspect the VPN is working fine given traffic is going from client to concentrator(server) and back, but for some reason, the traffic is not getting into pihole. Given the network doesn't appear to be known to pihole that would suggest there might be some configuration required on pihole?

@addons-assistant
Copy link

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

@sinclairpaul
Copy link
Member

Compare the configuration on the clients themself for your dns server, not what is set in the addon configuration (the addon config generates the conf/QR codes). Pi-Hole will likely report the addon IP address as the source, as it is tunneled from there.

@phluther
Copy link

phluther commented Sep 6, 2019

On the DNS page under settings for PiHole, have you set the option for PiHole to listen on all interfaces? Mine was set to listen only on eth0, and the connection worked using the DNS IP given in the readme only after changing this setting to all interfaces.

@harrywesterman
Copy link

On the DNS page under settings for PiHole, have you set the option for PiHole to listen on all interfaces? Mine was set to listen only on eth0, and the connection worked using the DNS IP given in the readme only after changing this setting to all interfaces.

Bingo, that is it.

@brent0np
Copy link
Author

brent0np commented Sep 9, 2019

Thank you all for providing some input.

I now have it working. I restarted the raspberry pi, recreated the device config so it generated another QR code(just to ensure it was all clean) and reconnected devices. (My pi is only connected using wifi)

Just for the sake of notes;

  • The DNS on handset was always configured inline with the addon's settings and Traffic was hitting both ends
  • I changed pihole config to 'listen on all interfaces'
  • I can see the addon in the pihole client list as suggested

I expect that changing that setting was the issue. Thanks for the advice all.

@frenck
Copy link
Member

frenck commented Sep 9, 2019

Section added to the docs, thanks @bonanitech for doing that.
Glad your issue is resolved @brent0np!

@frenck frenck closed this as completed Sep 9, 2019
@addons-assistant
Copy link

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@addons-assistant addons-assistant bot locked as resolved and limited conversation to collaborators Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants