Been trying to get Pihole working for a few days now, followed all the steps several times and still nothing. My devices will read that they have the right DNS address and will load pages but pi-hole doesn't filter. Go to the setting page and there tons of cashed DNS insertions but 0 evictions. Perhaps there is some coding I have to do to the router to make it the only DNS? if I do an nslookup on a device I'll get :
Server: raspberrypi
Address: 192.168.1.84
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to raspberrypi timed-out
Router is Asus RT-AC87R
Any help appreciated.
Expected Behaviour:
DNS filter working
-raspbian buster
-raspberry Pi4
Yeah, I ended up installing merlin last night and disabled router ip advertising but it still wasn't working. So I tried getting pihole to act as the DCHP server, but I can't seem to find to command structure needed for Raspian to get iptables to change the port settings... didn't even realize Raspbian had iptables lol
iptables isnt Raspbian specific.
Packet filtering, NAT etc is compiled into most kernels already as "Netfilter". iptables is just a tool to interact:
pi@ph5:~ $ man iptables
[..]
DESCRIPTION
Iptables and ip6tables are used to set up, maintain, and in‐
spect the tables of IPv4 and IPv6 packet filter rules in the
Linux kernel. Several different tables may be defined. Each
table contains a number of built-in chains and may also contain
user-defined chains.
Each chain is a list of rules which can match a set of packets.
Each rule specifies what to do with a packet that matches.
This is called a `target', which may be a jump to a user-de‐
fined chain in the same table.
That matches my output. I'm just unable to find the proper command line syntax to use iptables on rasbian. I'm pretty sure I need to open port 67 to enable the DHCP server but the commands I'm using don't seem to be working.
I initially setup my PI to connect to my router over WIFI and I was having trouble getting my devices to start using the Pi-hole. For me the solution was to update the Interface listening behavior within the Pi-hole settings to "Listen on all interfaces", by default it was configured to "Listen only on interface eth0.
If your iptables output matches mine, you wont need to alter with iptables because your rules already allow all.
Below is a good tool to test DNS from a client before you make alterations to your router settings.
You can also run this one on Pi-hole itself to test:
nslookup pi.hole 192.168.1.84
First check if the pihole-FTL daemon is actually listening on DNS ports 53 UDP/TCP (and others used by Pi-hole) with below: