Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Sun Jan 09, 2022 13:03 Post subject:
That is not the optimal way to setup a WAP.
The Local IP should be within the primary subnet but different from the main router so if the main router is 192.168.1.1 the WAP can be 192.168.1.2
Gateway and Local DNS should be set to the main router (you can argue to set Local DNS pointing to the Pi-Hole, but as your main router already points to the Pi-Hole I would set the IP address of the main router here)
Pi Hole:
Settings > DNS > Upstream DNS Servers Custom 1 (IPv4) - Checked - 192.168.1.1 (Gateway)
this is definitely wrong... why does the Pi-Hole use your router as upstream DNS server?
There you have to choose any upstream DNS server like Google (8.8.8.8 ) or if you use Unbound enter the address from Unbound (for example 127.0.0.1#5335)
Do you notice yourself?
1. DNS server in router is the Pi-Hole
1. DNS server in Pi-Hole is the router
The Local IP should be within the primary subnet but different from the main router so if the main router is 192.168.1.1 the WAP can be 192.168.1.2
That is the way it's set.
Gateway is 192.168.1.1
WAP is 192.68.1.6
See 220109 Setup.png below
egc wrote:
Gateway and Local DNS should be set to the main router (you can argue to set Local DNS pointing to the Pi-Hole, but as your main router already points to the Pi-Hole I would set the IP address of the main router here)
Leave the fields "Router IP > Gateway" and "Router IP > local DNS" empty.
Do not use "local DNS" for the Pi-Hole but use "Static DNS 1-3" only.
do not use "Conditional forwarding"
and no i don't have 200.000 request in 60sec
so it should come to your mind that something is wrong configured and running in a loop
Ok this is why I cleared those fields.
ho1Aetoo wrote:
this is definitely wrong... why does the Pi-Hole use your router as upstream DNS server?
There you have to choose any upstream DNS server like Google (8.8.8.8 ) or if you use Unbound enter the address from Unbound (for example 127.0.0.1#5335)
Do you notice yourself?
1. DNS server in router is the Pi-Hole
1. DNS server in Pi-Hole is the router
DNS ∞
No, I think it works. At least, I'm not seeing errors in the Pi Hole anymore. It appears to be working the way I had it. Where would I look to verify? _________________ TP-Link TL-WDR4300 v1 (NAS) - r54682
Buffalo WZR-600DHP (Gateway, NAS, DDNS, DHCP) - r54682
Netgear R7800 (Gateway, DDNS, DHCP, DNSMASQ w/Pi Hole) - r54682
Netgear R7800 (AP) - r54682
As I said before, delete the "custom DNS".
and choose Google IPv4 from the list or another upstream DNS server (google is the fastest)
You can of course also enter the IP from "Cleanbrowsing" or use Cloudflare.
In no case the address of the router belongs in there.
I believe you. I'm just confused. I thought that is the way I had it before and it wouldn't work. Trying it again now.
I'm one of those guys that loves to do this stuff but gets yelled at for not being smart enough to be doing it so...
I'm just trying to learn and I apologize if my inability to effectively communicate is giving you the impression that I'm not appreciative of the help. 'cause I am.
I think I'll go back and delete all my posts once I get it working to avoid the embarrassment and not confuse others. Now I'm scared to ask about setting up dual WAN with fail over. _________________ TP-Link TL-WDR4300 v1 (NAS) - r54682
Buffalo WZR-600DHP (Gateway, NAS, DDNS, DHCP) - r54682
Netgear R7800 (Gateway, DDNS, DHCP, DNSMASQ w/Pi Hole) - r54682
Netgear R7800 (AP) - r54682
Joined: 11 Jun 2015 Posts: 37 Location: Germany/Mexico/China
Posted: Wed Feb 16, 2022 14:30 Post subject:
Hello ho1Aetoo,
I switched from Adblock for DD-WRT written by Yamaraj to pihole. Pihole is running using the Additional DNSMasq Options:
dhcp-option=6,192.168.12.40
I also have a Guest Wifi which has been working while using Adblock for DD-WRT but since I use pihole I don't get any Internet connection while friends connect.
My normal Wifi IP range is from 192.168.12.120 - 192.168.12.170
The Pihole IP is 192.168.12.40
The Guest Wifi IP Range is 192.168.10.1 - 192.168.10.50.
Pihole is using the google DNS, no further adjustments, also no further changes in dd-wrt. Static DNS (DHCP) and Local DNS (Router IP) is 0.0.0.0
Are there any iptables that can help to solve this problem?
Thank you so much
Wickiman _________________ Netgear AC1900/R7000 DD-WRT v3.0-r37015M (09/23/18 ) kongac
Still one question, my DD-WRT Kong version is from 2018. Any problem that I don't have "Ignore WAN DNS" or "Maximum Chached Entries"?
Well ... with regard to "Ignore WAN DNS" just check in "Status_Internet.asp" that the static DNS is at the top (then it's no problem).
If the DNS servers of the ISP are listed first then it is bad.
Regarding "Maximum Cached Entries" - you can define this yourself as "additional dnsmasq options".
Code:
cache-size=0
Otherwise, in case of problems - the firmware is too old - no official support
(as i do not have such an old firmware in operation and cannot test it myself)