[CentOS] C6 gateway/firewall problem

Tue Dec 13 16:59:27 UTC 2011
John Hodrien <J.H.Hodrien at leeds.ac.uk>

On Tue, 13 Dec 2011, cliff here wrote:

> Also to note, if you edit your /etc/sysconfig/iptables file manually there
> is a line in /etc/init.d./iptables at line number 300 that will save on
> service iptables restart; meaning if you run that command the buffer will
> save over the file and basically revert any changes you just made to the
> file.

Well, it's line 300 on CentOS 5, not on CentOS 6.

If you mean that having "IPTABLES_SAVE_ON_STOP=yes" set means it saves on
restart, well yes.  But that's not the default, so you've changed your setup
to do that as far as I'm aware.

jh