Really minor thing. Can I combine these 2 firewall rules?

Not for any particular reason, just because I want to understand if it works this way.

The 2 rules right now
seen from the UI:


seen in the config file:

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

What I have in mind
seen from the UI:


seen in the config file:

config rule
        option name 'Allow-Ping-and-IGMP'
        option src 'wan'
        option family 'ipv4'
        option target 'ACCEPT'
        list proto 'icmp'
        list proto 'igmp'
        list icmp_type 'echo-request'

Everything still works right?

Yep, that’s fine

2 Likes

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