I am sure I messed up something, but I can't seem to figure out how to fix this.
Set up AdguardHome on a separete host. IP 10.1.1.20
Devices on lan are getting internet access correctly. But openwrt does not have internet.
I tried changing dns server on wan interface, but doesnt seem to do anything.
Thanks for your help.
~ # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=119 time=7.686 ms
64 bytes from 8.8.8.8: seq=1 ttl=119 time=8.110 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 7.686/7.898/8.110 ms
~ # ping google.com
ping: bad address 'google.com'
I set the Adguard dns for vpn interface so that vpn connections can access local hostnames. But only wireguard connections are supposed to go through vpn tunnel.
also, lan interface is advertising adguard ip via dhcp option 6. and lan clients are connecting to the dns server just fine. its just the openwrt host which cannot.
not sure you need the DNS IP in the VPN config, I'd probably put it on the clients, via DHCP, assuming all clients are supposed to use it, all the time.
it is able to connect to internet, since ping works, it's the DNS that isn't working.
I wouldn't have added the VPN DNS to the WAN interface, but again, I'm no expert.
~ # opkg update
Downloading https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/packages/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/base/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/base/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/luci/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/luci/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/packages/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/routing/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/routing/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/telephony/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/telephony/Packages.gz
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/base/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/luci/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/routing/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/x86_64/telephony/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.