config rule
option name 'Allow-500'
option src 'wan'
option src_ip '100.1.0.0/24'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config rule
option name 'Drop-500'
option src 'wan'
option src_ip '100.1.0.200'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'DROP'
How to specify the order of firewall rules, for example: If I want Drop-500 to be ranked before Allow-500, can it only be achieved by editing /etc/config/firewall to reorder the rules? Is there an option parameter that can directly specify the order?
The uci command line and luci are just to improve the efficiency of directly editing /etc/config/firewall to adjust this method. The disadvantage of this adjustment is that I have to remember the location of the target rule, which is not so convenient if there are many rules , Would it be more accurate to add an option to directly specify the order before and after