fw3
Diagnosing and resolving firewall zone warnings caused by mismatched UCI network and firewall configurations in OpenWrt
Print all IPv4 firewall rules
fw3 -4 print
Print all IPv6 firewall rules
fw3 -6 print
Print all firewall rules (quiet mode)
fw3 -q print
Start the firewall
fw3 start
Stop the firewall
fw3 stop
Flush all firewall rules
fw3 flush
Reload firewall configuration
fw3 reload
Restart the firewall
fw3 restart
Show firewall rules for a specific network
fw3 network lan
Show firewall rules affecting a specific device
fw3 device eth0
Show firewall rules for a zone and device
fw3 zone lan eth0
Firewall rules can also be found in
cat /etc/config/firewall