Firewall issues - Rules not working - WRT3200ACM on 21.02.3

Not sure what is happening here. I noticed some firewall rules are not working. I made no changes to the firewall rules or configuration in over a year. Two things I have noticed so far: My router should not be responding to icmp pings on IPv4. I ran ping tests from remote servers, and my router is responding to pings:

This rule is in /etc/config/firewall:

config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option family 'ipv4'
option target 'ACCEPT'
list icmp_type 'echo-request'
option limit '500/second'
option enabled '0'

Second, I have chain set to DROP. But this is not working either. Router is responding and not ignoring:

Like the last rule, this is also in /etc/config/firewall:

config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option output 'ACCEPT'
option masq '1'
option mtu_fix '1'
option input 'DROP'
option forward 'DROP'

How can I investigate this? This is very strange.

I restored the default firewall config from /rom/etc/config/firewall. To test, I changed the ping rule to disable and it worked. The rule had the exact same lines, but in a different order. So I don't know if this was the problem. I copied this rule into my old firewall config, and did the same for the rule to drop and it worked.

I replaced my old rules with these lines from the default config:

config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option limit '500/sec'
option target 'ACCEPT'
option enabled '0'

config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'

After copying those two rules from the default config to my own I restarted the firewall service and everthing was working as expected.

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