That might not be a problem. My router will not respond to lan gateway pings yet everthing else is fine.
That is not necessary!
That might not be a problem. My router will not respond to lan gateway pings yet everthing else is fine.
That is not necessary!
Firewall can drop ICMP (ping).
Like I said previously, I wouldn’t expect Pi-hole to be blocking ads if that would fully affect your device. Any upstream connection (including DNS forwards) would fail if you had no route to your gateway, and the other two are right about possible ICMP firewalling.
So as long as you still can open pages and do nslookups on public names, you should be good to go.
Just curious:
Does that mean the Pi-hole machine's CLI can ping the router?
Here's the code:
EDIT: cmd is cmd="ping"
or cmd="ping6"
@C64, what does below show ?
ip -4 route | grep default | cut -d ' ' -f 3
And below ?
ip route
Positive.
On the Pi itself:
ip -4 route | grep default | cut -d ' ' -f 3
192.168.1.1
192.168.1.1ip route
default via 192.168.1.1 dev eth0 src 192.168.1.200 metric 202
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.239 metric 303
192.168.1.0/24 dev eth0 proto dhcp scope link src 192.168.1.200 metric 202
192.168.1.0/24 dev wlan0 proto dhcp scope link src 192.168.1.239 metric 303
Your typing to slow @Bucking_Horn
For @C64:
cat /etc/network/interfaces
grep -A6 '^\s*interface' /etc/dhcpcd.conf
???
EDIT: ow ps. you should only have one gateway/default route defined.
That, and the routing table, confirm that you can connect to your gateway.
The reason the debug couldn't get to it might have something to do with two interfaces being active, eth0
and wlan0
.
In general (i.e. not specifically to fix the failed g/w ping), I'd recommend running Pi-hole on eth0
(stability and latency), and if you don't need it, disable wlan0
(less interference with existing WiFis, and saves some power, too).
Only because I try to avoid typos more than you do - here's your correct sentence :
You are typing too slow
Yeah I noticed too
cat /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
grep -A6 '^\s*interface' /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.57/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface eth0
static ip_address=192.168.1.200
static routers=192.168.1.1
static domain_name_servers=127.0.0.1
interface eth0
static ip_address=192.168.1.200/24
static routers=192.168.1.1
static domain_name_servers=127.0.0.1
I think at least the first entry is obsolete and should be deleted (?), maybe along with the second entry. What do you suggest?
Good point, thank you for that! For the record:
sudo nano /boot/config.txt
there, add this line:
dtoverlay=disable-wifi
Make backup of that file if make mistake:
sudo cp /etc/dhcpcd.conf /etc/dhcpcd.conf.bak
Edit that file:
sudo nano /etc/dhcpcd.conf
Delete all the redundant interface
sections and only leave below at the bottom before exit/saving the file:
interface eth0
static ip_address=192.168.1.200/24
static routers=192.168.1.1
static domain_name_servers=127.0.0.1
Reboot and check below one again:
ip route
If only one default route, you can try run pihole -d
again to see if fixed.
default via 192.168.1.1 dev eth0 src 192.168.1.200 metric 202
192.168.1.0/24 dev eth0 proto dhcp scope link src 192.168.1.200 metric 202
Now, pihole -d seems to report no more errors apart from IPv6 which, according to previous posts, is somewhat expected behaviour … right?
*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface:
192.168.1.200/24 matches the IP found in /etc/pihole/setupVars.conf[✓] IPv6 address(es) bound to the eth0 interface:
fe80::9edd:b635:2879:d87e does not match the IP found in /etc/pihole/setupVars.conf (Use IPv6 ULA addresses for Pi-hole)^ Please note that you may have more than one IP address listed.
As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
[i] Default IPv4 gateway: 192.168.1.1
- Pinging 192.168.1.1...
[✓] Gateway responded.
Am I supposed to add above IPv6 to /etc/pihole/setupVars.conf ?
Single G/W yes, single default route - not necessarily.
I think what we see is the result of a standard RPi config.
AFIAA, you can have two default routes, as long as they are attached to different interfaces and have different metrics attached.
The system would then default to the route with the higher metrics:
So in C64's setup, it would prefer wifi over lan routing, still with the same g/w.
EDIT: That way, route to g/w would stay operative even if WiFi would fail for some reason.
@C64: Feel free to ignore these tech mumblings, it's just some blokes getting carried away, brushing up their respective body of knowledge
Yeah metrics decides I realize.
But dont think the debugger can cope with two default routes @devs ???
EDIT: Looks like this bit goes south:
After disabling WiFi, not anymore:
default via 192.168.1.1 dev eth0 src 192.168.1.200 metric 202
192.168.1.0/24 dev eth0 proto dhcp scope link src 192.168.1.200 metric 202
Ah, so @deHakkelaar may be right and the failed g/w ping is a result of two default routes!
If you enable IPv6 support, yes.
Otherwise, it wouldn't affect functionality - but Pi-hole populates it's UI partially based on setupVars.conf
, and I think it would display a potentially wrong IPv6 address if you'd leave it.
Thank you, @Bucking_Horn, after adding the IPv6, it shows up in green.
Is this
*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[✓] www.new19year.000webhostapp.com is :: via localhost (::1)
[✓] www.new19year.000webhostapp.com is :: via Pi-hole (fe80::9edd:b635:2879:d87e)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)
… expected behaviour? From what I understand, failing to resolve doubleclick proves blocking to work fine.
If your ISP doesnt provide you with IPv6 support, its of little use to have your LAN support IPv6 as well.
It only complicates matters.
The debugger failing to resolve via public DNS is expected if no IPv6 support upstream.
I would disable everything IPv6 related on router and Pi-hole.
I see IPv6 isn't supported by my ISP, thanks for clarifying @deHakkelaar. IPv6 now is disabled.
I guess I made it now, only thanks to all of your patience and wisdom, helping me walk through this dense forest of options. @deHakkelaar @Bucking_Horn
Good night!
Sadly, the fun lasted only a few hours, I can't access WAN anymore. Clients receive their IPs and correct local DNS server address, http://pi-hole/admin is accessible, but ultimately all clients fail to connect to the internet.
My setup:
I‘ve rebooted Cable Mode, Router and Pi-Hole, alas, no client can connect to a website. Something has changed over night, like an IP address or so, a new may have been given, and things got broken.
What do I miss here?