I have beelink U59 Pro with dual 1GiB Nic currently running Openwrt 25.12.0-rc2 LXC inside Proxmox. For setup & testing purpose I created two network interface (eth0 & eth1) linked to same proxmox bridge vmbr0, eth0 currently acting as WAN port and eth1 acting as LAN port. DNS queries get resolved in Proxmox host and devices connect to LAN port of openwrt and internet is working in connected device. But inside openwrt terminal ping 8.8.8.8 is reachable but ping google.com is unreachable and apk update is also get fetch error. If is run echo “nameserver 192.168.8.1” > /etc/resolv.conf, everything works well until reboot. /tmp/resolv.conf.auto points to modem dns "192.168.8.1"
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
![]()
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
cat /etc/config/firewall
Hi, thanks for commenting. Here is the output of all commands.
root@openwrt:~# ubus call system board
{
"kernel": "6.17.4-2-pve",
"hostname": "openwrt",
"system": "Intel(R) Celeron(R) N5105 @ 2.00GHz",
"model": "AZW U59",
"board_name": "azw-u59",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "25.12.0-rc2",
"firmware_url": "https://downloads.openwrt.org/",
"revision": "r32429-d76c64ad00",
"target": "x86/64",
"description": "OpenWrt 25.12.0-rc2 r32429-d76c64ad00",
"builddate": "1767653330"
}
}
root@openwrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
list ipaddr '127.0.0.1/8'
config globals 'globals'
option dhcp_default_duid '0004f14768daa5de441b8e0c2be8a34f9be7'
option ula_prefix 'fd6b:887d:71c2::/48'
option packet_steering '1'
config interface 'lan'
option device 'eth1'
option proto 'static'
list ipaddr '192.168.1.1/24'
option ip6assign '60'
config interface 'wan'
option device 'eth0'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
root@openwrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
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'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ra_preference 'medium'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/odhcpd.leases'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
option piodir '/tmp/odhcpd-piodir'
option hostsdir '/tmp/hosts'
root@openwrt:~# cat /etc/config/firewall
config defaults
option syn_flood 1
option input REJECT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1
config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward DROP
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
config rule
option name Allow-Ping
option src wan
option proto icmp
option icmp_type echo-request
option family ipv4
option target ACCEPT
config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT
# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
option name Allow-DHCPv6
option src wan
option proto udp
option dest_port 546
option family ipv6
option target ACCEPT
config rule
option name Allow-MLD
option src wan
option proto icmp
option src_ip fe80::/10
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family ipv6
option target ACCEPT
# Allow essential incoming IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Input
option src wan
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
list icmp_type router-solicitation
list icmp_type neighbour-solicitation
list icmp_type router-advertisement
list icmp_type neighbour-advertisement
option limit 1000/sec
option family ipv6
option target ACCEPT
# Allow essential forwarded IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Forward
option src wan
option dest *
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
option limit 1000/sec
option family ipv6
option target ACCEPT
config rule
option name Allow-IPSec-ESP
option src wan
option dest lan
option proto esp
option target ACCEPT
config rule
option name Allow-ISAKMP
option src wan
option dest lan
option dest_port 500
option proto udp
option target ACCEPT
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
# port redirect of remapped ssh port (22001) on wan
#config redirect
# option src wan
# option src_dport 22001
# option dest lan
# option dest_port 22
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
- Where is the network 192.168.8.0/24?
It doesn't appear anywhere in your configuration.
- Also, provide the output of:
nslookup google.comandnslookup downloads.openwrt.org- ran from the OpenWrt
We can't guess what your topology is.
If you are looking for a workaround that will survive a reboot, run this:
uci set dhcp.@dnsmasq[0].noresolv='1'
uci add_list dhcp.@dnsmasq[0].server='192.168.8.1'
uci commit dhcp
service dnsmasq restart
Otherwise, you will need to post more info.
That does not sound right. WAN and LAN need to be separate networks.
Hi, sorry for delayed response. Update, I created the fresh proxmox lxc using latest build 25.12.0-rc3 and I assigned Openwrt WAN interface to vmbr0 and Openwrt LAN interface to vmbr1. Modem to connected vmbr0 and vmbr1 is currently unused. I ran the previously stated command and following are outputs.
root@openwrt:~# 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=114 time=41.731 ms
64 bytes from 8.8.8.8: seq=1 ttl=114 time=34.503 ms
64 bytes from 8.8.8.8: seq=2 ttl=115 time=34.360 ms
64 bytes from 8.8.8.8: seq=3 ttl=115 time=33.815 ms
^Z[2]+ Stopped ping 8.8.8.8
root@openwrt:~# ping google.com
ping: bad address 'google.com'
root@openwrt:~# apk update
wgetFailed to send request: Operation not permitted
ERROR: wget: exited with error 4
WARNING: updating and opening https://downloads.openwrt.org/releases/25.12.0-rc3/targets/x86/64/packages/packages.adb: unexpected end of file
[fetch https://downloads.openwrt.org/releases/25.12.0-rc3/packages/x86_64/base/packages.adb]^Z[3]+ Stopped apk update
root@openwrt:~# nslookup google.com
nslookup: write to '127.0.0.1': Connection refused
nslookup: write to '::1': Connection refused
;; connection timed out; no servers could be reached
root@openwrt:~# nslookup downloads.openwrt.org
nslookup: write to '127.0.0.1': Connection refused
nslookup: write to '::1': Connection refused
;; connection timed out; no servers could be reached
root@openwrt:~# ubus call system board
{
"kernel": "6.17.4-2-pve",
"hostname": "openwrt",
"system": "Intel(R) Celeron(R) N5105 @ 2.00GHz",
"model": "AZW U59",
"board_name": "azw-u59",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "25.12.0-rc3",
"firmware_url": "https://downloads.openwrt.org/",
"revision": "r32486-30527a4c34",
"target": "x86/64",
"description": "OpenWrt 25.12.0-rc3 r32486-30527a4c34",
"builddate": "1768954854"
}
}
root@openwrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
list ipaddr '127.0.0.1/8'
config globals 'globals'
option dhcp_default_duid '0004aaf59140bd034071bcaa87cf3f8cbb04'
option ula_prefix 'fd35:8b98:abbe::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
config interface 'lan'
option device 'eth1'
option proto 'static'
list ipaddr '192.168.1.1/24'
option ip6assign '60'
config interface 'wan'
option device 'eth0'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
option disabled '1'
option auto '0'
root@openwrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
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'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ra_preference 'medium'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
option leasetime '12h'
option start '100'
option limit '150'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/odhcpd.leases'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
option piodir '/tmp/odhcpd-piodir'
option hostsdir '/tmp/hosts'
root@openwrt:~# cat /etc/config/firewall
config defaults
option syn_flood 1
option input REJECT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1
config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward DROP
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
config rule
option name Allow-Ping
option src wan
option proto icmp
option icmp_type echo-request
option family ipv4
option target ACCEPT
config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT
# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
option name Allow-DHCPv6
option src wan
option proto udp
option dest_port 546
option family ipv6
option target ACCEPT
config rule
option name Allow-MLD
option src wan
option proto icmp
option src_ip fe80::/10
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family ipv6
option target ACCEPT
# Allow essential incoming IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Input
option src wan
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
list icmp_type router-solicitation
list icmp_type neighbour-solicitation
list icmp_type router-advertisement
list icmp_type neighbour-advertisement
option limit 1000/sec
option family ipv6
option target ACCEPT
# Allow essential forwarded IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Forward
option src wan
option dest *
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
option limit 1000/sec
option family ipv6
option target ACCEPT
config rule
option name Allow-IPSec-ESP
option src wan
option dest lan
option proto esp
option target ACCEPT
config rule
option name Allow-ISAKMP
option src wan
option dest lan
option dest_port 500
option proto udp
option target ACCEPT
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
# port redirect of remapped ssh port (22001) on wan
#config redirect
# option src wan
# option src_dport 22001
# option dest lan
# option dest_port 22
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
root@openwrt:~# ubus call network.interface.wan status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 1745,
"l3_device": "eth0",
"proto": "dhcp",
"device": "eth0",
"updated": [
"addresses",
"routes",
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.8.45",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "192.168.8.1",
"source": "192.168.8.45/32"
}
],
"dns-server": [
"192.168.8.1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"dhcpserver": "192.168.8.1",
"leasetime": 86400
}
}
root@openwrt:~# echo "nameserver 192.168.8.1" > /etc/resolv.conf
root@openwrt:~# nslookup google.com
Server: 192.168.8.1
Address: 192.168.8.1:53
Non-authoritative answer:
Name: google.com
Address: 2a00:1450:4019:817::200e
Non-authoritative answer:
Name: google.com
Address: 142.250.203.174
root@openwrt:~# nslookup downloads.openwrt.org
Server: 192.168.8.1
Address: 192.168.8.1:53
Non-authoritative answer:
downloads.openwrt.org canonical name = dualstack.j.sni.global.fastly.net
Name: dualstack.j.sni.global.fastly.net
Address: 2a04:4e42:80::644
Non-authoritative answer:
downloads.openwrt.org canonical name = dualstack.j.sni.global.fastly.net
Name: dualstack.j.sni.global.fastly.net
Address: 146.75.66.132
I didn't have any complex network topology. As mentioned in my first post, I'm using Beelink U59 with dual nic, U59 LAN 1 is connected to Modem and inside proxmox U59 LAN 1 is connected to vmbr0 which then connected to Proxmox host and Openwrt LXC's WAN port. U59 LAN 2 is Physically not connected to anyting but inside Proxmox it is connected to vmbr1 which is then connected to Openwrt LXC's LAN port and Lubuntu VM (to test LAN connections).
By allocating different bridges to Openwrt WAN & LAN, I noticed that LAN dhcp is also not working. I asigned static ip inside VM to access Openwrt.
Thanks to @mk24 for giving hint to seperate the WAN & LAN interfaces.
Do you have dnsmasq installed? Recently, there have been some errors in the snapshot versions when building the OpenWrt image.
Hi, dnsmasq is installed but it is not running and unable to restart using /etc/init.d/dnsmasq start
root@openwrt:~# /etc/init.d/dnsmasq status
not running
Following error appears while running dnsmasq --no-daemon. can someone help me to find which services using port 53?
root@openwrt:~# dnsmasq --no-daemon
dnsmasq: failed to create listening socket for port 53: Address in use
Google netstat.
netstat -nltup | grep ":53 "