{"kernel":"5.4.48","hostname":"OpenWrt","system":"ARMv7 Processor rev 1 (v7l)","model":"Turris Omnia","board_name":"cznic,turris-omnia","release":{"distribution":"OpenWrt","version":"SNAPSHOT","revision":"r13611-3f27a6e640","target":"mvebu/cortexa9","description":"OpenWrt SNAPSHOT r13611-3f27a6e640"}}
opkg files kmod-nft-core
Package kmod-nft-core (5.4.48-1) is installed on root and has the following files:
/lib/modules/5.4.48/nft_reject.ko
/lib/modules/5.4.48/nft_reject_ipv4.ko
/lib/modules/5.4.48/nf_tables_set.ko
/lib/modules/5.4.48/nft_numgen.ko
/lib/modules/5.4.48/nft_counter.ko
/lib/modules/5.4.48/nft_reject_ipv6.ko
/lib/modules/5.4.48/nft_ct.ko
/lib/modules/5.4.48/nf_tables.ko
/lib/modules/5.4.48/nft_redir.ko
/lib/modules/5.4.48/nft_limit.ko
/lib/modules/5.4.48/nft_hash.ko
/lib/modules/5.4.48/nft_objref.ko
/lib/modules/5.4.48/nft_reject_inet.ko
/lib/modules/5.4.48/nft_quota.ko
/lib/modules/5.4.48/nft_log.ko
/etc/modules.d/nft-core
opkg files kmod-nft-nat
Package kmod-nft-nat (5.4.48-1) is installed on root and has the following files:
/lib/modules/5.4.48/nft_masq.ko
/etc/modules.d/nft-nat
/lib/modules/5.4.48/nft_nat.ko
opkg files kmod-nft-nat6
Package kmod-nft-nat6 (5.4.48-1) is installed on root and has the following files:
Steps to reproduce
nft add table inet filter
nft add chain inet filter input { type filter hook input priority 0 \; }
nft add chain inet filter forward { type filter hook forward priority 0 \; }
nft add chain inet filter output { type filter hook output priority 0 \; }
nft add table inet nat
nft add chain inet nat postrouting { type nat hook postrouting priority 100 \; }
ending up with
Error: Could not process rule: No such file or directory
which is a common indication of a missing kernel function. For NFT NAT to work it requires kmod nft_chain_nat which though is absent
modinfo nft_chain_nat
modinfo: ERROR: Module alias nft_chain_nat not found.
despite
xzgrep NFT_NAT /proc/config.gz
CONFIG_NFT_NAT=m
There seems something wrong in the build system missing to build that module.
Another module issue is with kmod-nft-nat6 that provides no *.ko file at all.
Appreciate if developers could take a look at the build system and get this sorted.