Applies to · OpenWrt 25.12.4 · fw4 · nftables
What to check
Compare the expected test rules with the currently loaded kernel rules, and log the first file descriptor error upon saving.
Connect over Ethernet and run the following commands in an SSH session on the router.
fw4 check
nft list tables
logread -e fw4
nft list ruleset
How to interpret the result
Locate file descriptor errors in the logs, then compare expected changes against current nft rules item by item. If active rules have not changed, retain the previous valid configuration. If rules have changed, test known allowed and denied connections separately, and keep the wired management interface active.
Verify and recover
Verify an allowed connection and a connection that policy should block. Check the active rules and retain the previous valid ruleset and wired management.
Related guide · Verify that custom firewall rules loaded after moving from fw3 to fw4
Comments