IPtables Firewall – Rules testing

Did you ever configure a firewall and locked yourself out? Then you might like these commands to test IPTables configuration for a few seconds and then killing the process.

[code]iptables restart; sleep 20; iptables stop[/code]

This way you have 20 seconds to see if the rules are in order; if not you just wait until IPTables stops and you can alter the configuration file.


Geef een reactie

%d bloggers liken dit: