Wednesday, December 1, 2010

Stupid iptables

So, come to find out you are not supposed to restart iptables after making a change. When you make a change in iptables you should issue the following command as root in order to have the changes take effect:

iptables-restore < /etc/sysconfig/iptables

Of course, the location of the iptables may vary from one system to another. The above was done on a centos system and is basically the equivalent of reloading the config files in apache.

No comments:

Post a Comment