Linux: iptables: Removing a collection of iptables rules at once
www.talkain.com
Here is a small trick for removing several iptables rules at once, Let's assume we would like to add some rules: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE I can use the comment match and add a comment to this line: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Linux: iptables: Removing a collection of iptables rules at once
Linux: iptables: Removing a collection of…
Linux: iptables: Removing a collection of iptables rules at once
Here is a small trick for removing several iptables rules at once, Let's assume we would like to add some rules: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE I can use the comment match and add a comment to this line: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE