PiHole Question

Bernie

Expert Member
Joined
May 2, 2006
Messages
2,134
Reaction score
98
I have Pi Hole running successfully in my Pi. My home network is managed by a Mikrotik router which is running DHCP server and is pushing the Pi Hole as the DNS server - all good.

For wireless clients, the Pihole is picking up the Mikrotik IP as the client. For wired clients I can see the actual client IP.

Googling this I see some 2 year old posts on Reddit and other sources explaining the issue is with the router.

The solution it seems is to run DHCP from the Pi Hole itself. I am not too keen on doing this, as I have 3 DHCP servers running on the Mik and prefer to have everything in one place.

Is there anything else I can try on the Mikrotik to get around this, maybe a mangle rule of sorts. Is anyone running a similar setup and have a workaround.

TIA.
 
I have exactly the same set up.
I have my main IP>DNS set as the PI-Hole and then IP>DHCP Server > Networks I have set each network pool to use the Pi-Hole as DNS,
not sure if that perhaps helps?
 
I have exactly the same set up.
I have my main IP>DNS set as the PI-Hole and then IP>DHCP Server > Networks I have set each network pool to use the Pi-Hole as DNS,
not sure if that perhaps helps?
In your Pi Hole logs, do you see each wireless client actual IP, or your routers IP. This is the issue I am having. I still get the benefit of the Pi hole so not totally fussed, but it would be really great to see which wireless client generated the DNS query.
 
In your Pi Hole logs, do you see each wireless client actual IP, or your routers IP. This is the issue I am having. I still get the benefit of the Pi hole so not totally fussed, but it would be really great to see which wireless client generated the DNS query.
I see each device's IP in the Pi-Hole logs
 
I see each device's IP in the Pi-Hole logs
Damn I am jealous :)

Is your mikrotik providing the wifi itself, or do you have a separate access point connected to the router where the wifi is setup.
 
My Mikrotik router is broadcasting 4 separate ssid's, each one with its own ip range.
The Pi-Hole logs each device IP in each of the 4 ranges, been looking through the config but other than those extra settings for networks, I did not find anything else I can offer as a suggestion, even checked if there was perhaps something in Pi-Hole that might help.
 
Is there not a NAT rule somewhere for traffic between wireless clients and lan clients that's causing that?
 
Is there not a NAT rule somewhere for traffic between wireless clients and lan clients that's causing that?
ty.jpg

Thank you - Thank you.

This is exactly the issue.

My general masquerade rule for NAT for internet did not specify an outbound interface - I didn't need it and when I had 2 WAN interfaces 1 rule for them was fine. Now, as soon I specified my WAN interface in the rule, all local clients now started appearing in the pi hole logs.

Again, thank you - much appreciated.
 
Top
Sign up to the MyBroadband newsletter
X