I recently installed stable openwrt-22.03 by hnyman. I don't know how to handle SYN scans on the WAN interface that show up every few seconds. I don't want the router to respond to them, just drop them.
I have tried several commands which unfortunately do not work. I am not sure if they are correct and if I need to reload firewall.
I inserted the recommended rules from another thread into each input and input_wan chain without any effect. I also tried putting them in /etc/nftables.d/10-custom-filter-chains.nft
# Drop XMAS packets.
tcp flags & (fin|syn|rst|psh|ack|urg) == fin|syn|rst|psh|ack|urg counter drop
# Drop NULL packets.
tcp flags & (fin|syn|rst|psh|ack|urg) == 0x0 counter drop
Only after I changed the input action in the wan zone from reject to drop it works as intended.