Expected Behaviour:
PiHole should only have 1 IP address and only be accessable from 1 IP
Actual Behaviour:
PiHole has 2 IP's 192.168.1.3 and 192.168.1.165
Debug Token:
1yjhh1xt80
PiHole should only have 1 IP address and only be accessable from 1 IP
PiHole has 2 IP's 192.168.1.3 and 192.168.1.165
1yjhh1xt80
Have you rebooted since you installed the Pi-hole software? And how do you have the Pi set up to be addresses? Check /etc/dhcpcd.conf
and see if there are two IP addresses configured. Also check /etc/network/interfaces
to make sure it is the stock Raspbian and has not been changed to add a static IP address or DHCP sourced addressing.
I edited dhcpcd.conf cause if has some other addresses in it but not the .165 address but this is the output of sudo nano /etc/network/interfaces
GNU nano 2.2.6 File: /etc/dhcpcd.conf GNU nano 2.2.6 File: /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
[ Read 20 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
iface eth0 inet manual
will set that interface to only use /etc/dhcpcd.conf
for it's static IP and not request an IP from the DHCP server.
Should I use iface wlan0 inet manual since in using WiFi instead of ethernet
Yes, but first run ip addr
to list the IPs assigned to each interface to make sure eth0
doesn't have anything. If there's no cable to it, there shouldn't be, but it's good to check first.
Ok then should I delete that wlan1 entry?
I can't say for sure, I don't know how you have your network set up and what interfaces are needed.
It's just a retropie image with PiHole running in the background over WiFi... I have DHCP disabled in my router and DHCP enabled on the PiHole
Can you post the output from ip addr
and we can see if there's anything on that interface?
Here you go. Also seeing a few ipv6 addresses that aren't needed anymore possibly.
root@retropie:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:ea:15:e9 brd ff:ff:ff:ff:ff:ff
inet6 fe80::3c98:d473:1401:7bb2/64 scope link tentative
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:bf:40:bc brd ff:ff:ff:ff:ff:ff
inet 192.168.1.165/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet 192.168.1.3/24 brd 192.168.1.255 scope global secondary wlan0
valid_lft forever preferred_lft forever
inet6 2605:a000:1108:43ca:2e24:c0e7:924:e29b/64 scope global noprefixroute dynamic
valid_lft 86189sec preferred_lft 86189sec
inet6 2605:a000:1108:6071::14b/128 scope global noprefixroute dynamic
valid_lft 81218sec preferred_lft 81218sec
inet6 2605:a000:1108:6071:c6d5:8b31:c1ee:f8d3/64 scope global deprecated noprefixroute dynamic
valid_lft 2089sec preferred_lft 0sec
inet6 fe80::392f:947:fff2:7486/64 scope link
valid_lft forever preferred_lft forever
Yes, change the wlan0
line to manual
and remove the wlan1
since that's not an active interface. The IPv6 may or may not be removed with manual
but be aware that if your network is IPv6 and you are not blocking with IPv6 in Pi-hole you will probably have some ads leak through.
Yes I am blocking over ipv6 so I don't want to delete all the adressess just the one currently in use. Am I right in assuming that?
Actually where are the ipv6 addresses saved?
They are all dynamic
so they are dynamically generated via a process called autoconfiguration or SLAAC. I'd suggest a read through Use IPv6 ULA addresses for Pi-hole for some more on IPv6 and Pi-hole.
I've actually read that and in my particular router ula is not supported at least not without running custom firmware
Okay, the dynamic addresses can change, so that's something to keep in mind with Pi-hole and if you see ads coming through. They can not be removed through a configuration file change, only disabled completely.
Ads aren't really leaking through from what I can see but just trying to clean things up
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.