Openwrt v24.10 default not networking on TrueNAS 25.04.2 Container

UPDATE

After successfully booting openwrt 24.10.2 on truenas 25.04.2 container, I uninstalled dnsmasq and installed dnsmasq-full, but that’s where the problem comes in, I use MacVlan br0.
Everything was fine when I first installed it, but when I enabled the luci-app-passwall2 plugin, GitHub - xiaorouji/openwrt-passwall2
I encountered an error.

~ # cat /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
    option ifname 'eth0'
    option proto 'static'
    option ipaddr '10.0.0.99'
    option netmask '255.255.255.0'
    option gateway '10.0.0.1'
    list dns '10.0.0.1'
~ # cat /etc/config/dhcp
config dnsmasq
        option domainneeded     1
        option boguspriv        1
        option filterwin2k      0  # enable for dial on demand
        option localise_queries 1
        option rebind_protection 1  # disable if upstream must serve RFC1918 addresses
        option rebind_localhost 1  # enable for RBL checking and similar services
        #list rebind_domain example.lan  # whitelist RFC1918 responses for domains
        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'
        #list server            '/mycompany.local/1.2.3.4'
        option nonwildcard      1 # bind to & keep track of interfaces
        #list interface         br-lan
        #list notinterface      lo
        #list bogusnxdomain     '64.94.110.11'
        option localservice     1  # disable to allow DNS requests from non-local subnets
        option ednspacket_max   1232
        option filter_aaaa      0
        option filter_a         0
        #list addnmount         /some/path # read-only mount path to expose it to dnsmasq

config dhcp lan
        option interface        lan
        option start    100
        option limit    150
        option leasetime        12h

config dhcp wan
        option interface        wan
        option ignore   1

any help?

Are you actually on TrueNAS 25.10 Nightlies or did you post wrong version? Fangtooth, 25.04.x is the newest release. Electric Eel, 24.10 is the previous but still supported version

Im sorry, i using TrueNAS 25.04.1, and i update to 25.04.2 right now.

Make sure to read all the release notes and the Announcements section for that update. Not sure if you can create an Incus any more.

I realize that 25.04.2 has some changes for containers and VMs, but the openwrt image hasn’t changed, the problem is with the openwrt 24.10 image, I can’t override dnsmasq with dnsmasq-full

This is the entire process from creating the image to the problem occurring

BusyBox v1.36.1 (2025-06-23 20:40:36 UTC) built-in shell (ash)
~ # ping openwrt.org
PING openwrt.org (64.226.122.113): 56 data bytes
64 bytes from 64.226.122.113: seq=0 ttl=47 time=248.782 ms
64 bytes from 64.226.122.113: seq=1 ttl=47 time=250.950 ms
64 bytes from 64.226.122.113: seq=2 ttl=47 time=247.977 ms
64 bytes from 64.226.122.113: seq=3 ttl=47 time=250.974 ms
^C
--- openwrt.org ping statistics ---
5 packets transmitted, 4 packets received, 20% packet loss
round-trip min/avg/max = 247.977/249.670/250.974 ms
~ # cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
config globals 'globals'
option ula_prefix 'fdee:a48:db93::/48'
~ # opkg update
Downloading https://downloads.openwrt.org/releases/24.10.2/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/24.10.2/targets/x86/64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/targets/x86/64/kmods/6.6.93-1-1745ebad77278f5cdc8330d17a3f43d6/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/releases/24.10.2/targets/x86/64/kmods/6.6.93-1-1745ebad77278f5cdc8330d17a3f43d6/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/telephony/Packages.sig
Signature check passed.
~ # 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'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
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'
~ # cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
config globals 'globals'
option ula_prefix 'fdee:a48:db93::/48'
~ # ping openwrt.org
PING openwrt.org (64.226.122.113): 56 data bytes
64 bytes from 64.226.122.113: seq=0 ttl=47 time=247.812 ms
64 bytes from 64.226.122.113: seq=1 ttl=47 time=250.449 ms
64 bytes from 64.226.122.113: seq=2 ttl=47 time=247.720 ms
64 bytes from 64.226.122.113: seq=3 ttl=47 time=251.138 ms
^C
--- openwrt.org ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 247.720/249.279/251.138 ms

~ # opkg remove dnsmasq
Removing package dnsmasq from root...
Not deleting modified conffile /etc/config/dhcp.
~ # mv /etc/config/dhcp /etc/config/dhcp-old
~ # opkg install dnsmasq-full
Installing dnsmasq-full (2.90-r4) to root...
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/dnsmasq-full_2.90-r4_x86_64.ipk
Installing libgmp10 (6.3.0-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/libgmp10_6.3.0-r1_x86_64.ipk

Installing libnettle8 (3.9.1-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/libnettle8_3.9.1-r1_x86_64.ipk
Installing libnfnetlink0 (1.0.2-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/libnfnetlink0_1.0.2-r1_x86_64.ipk
Installing kmod-nf-conntrack-netlink (6.6.93-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.2/targets/x86/64/kmods/6.6.93-1-1745ebad77278f5cdc8330d17a3f43d6/kmod-nf-conntrack-netlink_6.6.93-r1_x86_64.ipk
Installing libnetfilter-conntrack3 (1.0.9-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.2/packages/x86_64/base/libnetfilter-conntrack3_1.0.9-r2_x86_64.ipk
Configuring libnfnetlink0.
Configuring kmod-nf-conntrack-netlink.
Configuring libnetfilter-conntrack3.
Configuring libgmp10.
Configuring libnettle8.
Configuring dnsmasq-full.
~ # 
~ # ping openwrt.org
ping: bad address 'openwrt.org'
~ # 

Someone else will have to comment. Only think I can think of is to check the dhcp config changes. You can try pinging the ip address, 64.226.122.113 that was in the data earlier. That will at least tell you if its just dhcp and no networking or no DNS lookup

Not deleting modified conffile /etc/config/dhcp.
~ # mv /etc/config/dhcp /etc/config/dhcp-old

The only difference between them is the lack of single quotes

There have been some changes to the truenas 25.04.2 container. I completely re-edited the content, but the problem still persists. I found a solution on the LXC forum, but it is still unstable. Can anyone here help?

I would just use pfsense if your are running a VM for your router.

Openwrt is a great software but is designed to go on low power devices.