is it possible to move iptables rules up or down?
If I execute "iptables -L -n" I can see all the rules in all the chains. Is it possible to change the order of rules using the iptables utility? For example move certain rule up from the bottom? Or is the only way to achieve this by editing the firewall configuration file? In Cisco IOS it's a good practice to add rules with sequence numbers which allows one later to easily insert rules before a certain rule.
|
you can use the "-I INPUT ##" option to insert at a specific point.
|
Quote:
|
Use the --line-numbers option.
iptables -t filter -L INPUT --line-numbers |
All times are GMT -5. The time now is 01:32 PM. |