To add and remove iptables rule
Hi folks,
Ubuntu 8.04
To input a rule whether run;
$ sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
Then run;
$ sudo iptables-save > rules-saved
to save that rule ?
To display/check it;
$ sudo iptables -L
the rule will be displayed
If to remove above rule whether run;
$ sudo iptables -P INPUT DROP INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
Then run again;
$ sudo iptables-save > rules-saved
$ sudo iptables -L
the rule will disappear
???
TIA
B.R.
satimis