As it's mentioned in the title I'm using a Banana Pi R3 for this, currently running a snapshot version, r22638-097f350aeb
to be exact with 5.15.108
kernel version. I'm not sure if this can be a problem, but I couldn't find any information related to a snapshot version being unable to run adguardhome.
After following this guide: https://openwrt.org/docs/guide-user/services/dns/adguard-home, I can browse with no issue on my Wireless and cabled devices, but when doing a ping google.com
or openwrt.org
directly into the OpenWRT router while ssh (or in LuCi), it always returns as 'bad address' (opkg update
doesn't work either, of course).
After reading tons of posts on the forum, I do know it's something related to DNS, but I'm not sure on how to debug and find this issue. Apart from my Wi-Fi SSID's and packages for diagnostics/utils, there's no crazy custom configuration, everything is at its default state.
A few points that I've tested/done already:
- Changing
nameserver 127.0.0.1
tonameserver 1.1.1.1
works (as mentioned on this post), but it's not a definitive answer as I need to change it every time I do a reboot or run/etc/init.d/dnsmasq restart
, plus, and not sure why changing this works. - When setting up AdGuardHome by going to
192.168.1.1:3000
, choose only my router as the web interface, changing first port80
to8080
and the DNS server remained53
. - My
wan
interface is using the optionsUse DNS servers advertised by peer
, I've tried disabling it and adding Google and Cloudflare's DNS and the same withwan6
.
Files after installing and configuring everything for AdGuard:
My /etc/resolv.conf
:
search lan
nameserver 127.0.0.1
nameserver ::1
My /etc/config/network
:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdb3:90b5:9eae::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'sfp2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'br-wan'
option type 'bridge'
list ports 'eth1'
list ports 'wan'
config device
option name 'eth1'
option macaddr '3e:69:b1:b4:34:09'
config device
option name 'wan'
option macaddr '3e:69:b1:b4:34:09'
config interface 'wan'
option device 'br-wan'
option proto 'dhcp'
config interface 'wan6'
option device 'br-wan'
option proto 'dhcpv6'
My /etc/config/dhcp
:
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '0'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
option confdir '/tmp/dnsmasq.d'
option noresolv '0'
option port '54'
list server '192.168.1.1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
list dhcp_option '6,192.168.1.1'
list dhcp_option '3,192.168.1.1'
list dns 'fdb3:90b5:9eae::1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
My /tmp/resolv.conf.d/resolv.conf.auto
, I've tried with 1.1.1.1
and 8.8.8.8
too, didn't work (I've hidden the nameserver because it's from my ISP, not sure if there are any safety risks by including it, better safe than sorry):
# Interface wan
nameserver "IPS"
nameserver "IPS"
# Interface wan6
nameserver fe80::1%br-wan
nslookup google.com 1.1.1.1
results:
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
Name: google.com
Address: 142.251.129.142
Name: google.com
Address: 2800:3f0:4001:808::200e
ping google.com
results (same as other domains):
ping: bad address 'google.com'
ping 8.8.8.8
results:
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=61 time=5.683 ms
64 bytes from 8.8.8.8: seq=1 ttl=61 time=4.062 ms
64 bytes from 8.8.8.8: seq=2 ttl=61 time=4.515 ms
# I stopped it here.
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 4.062/4.753/5.683 ms
Now, I'm not an expert, but I would gladly redo all the steps for the AdGuardHome installation and do some extra logging while at it for anyone willing to help me find out what's wrong. Thanks.