Firewall rules missing/invisible in 22.03

I upgraded my WRT1900ACS from 21.02 to 22.03.2. I can't see any firewall rules:

root@router:~# iptables-nft --list
# Warning: iptables-legacy tables present, use iptables-legacy to see them
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
root@router:~# iptables-legacy --list
-ash: iptables-legacy: not found

I have some custom rules but they are all in /etc/config/firewall, so I understand the syntax should carry over from fw3 to fw4 without change.
I don't understand why it's saying iptables-legacy is there when it isn't.

Anyway, what should I do to resolve this?

Use nft list ruleset or fw4 print to show the rules.

2 Likes

It's not there... Actually looks like I don't have fw4 at all:

root@router:/usr/share# nft
-ash: nft: not found
root@router:/usr/share# ls
acl.d/           dnsmasq/         libiwinfo/       luci/            udhcpc/
advanced-reboot/ fw3/             libubox/         rpcd/
...
root@router:/etc# cat openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03.2'
DISTRIB_REVISION='r19803-9a599fee93'
DISTRIB_TARGET='mvebu/cortexa9'
DISTRIB_ARCH='arm_cortex-a9_vfpv3-d16'
DISTRIB_DESCRIPTION='OpenWrt 22.03.2 r19803-9a599fee93'
DISTRIB_TAINTS=''

Solved by removing packages 'iptables' and 'firewall' from the 22.03 sysupgrade build before installing

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.