[CentOS] How to preserve iptables when running the GUI tool ?
Les Mikesell
lesmikesell at gmail.com
Mon Dec 5 21:35:59 UTC 2011
On Mon, Dec 5, 2011 at 3:09 PM, Reindl Harald <h.reindl at thelounge.net> wrote:
>
>> Not sure what the GUI tool does (I'd assume it clears iptables if you
>> tell it to disable the firewall...) but 'service iptables save' writes
>> a file named iptables in /etc/sysconfig that you should be able to
>> back up somewhere. However, a normal 'service iptables stop' which
>> will happen in a shutdown/reboot, etc. will also overwrite that file.
>
> no it does not
>
> since my first begin with linux i generate iptables-rules with shells-cripts
> calling "service iptables save" at the end and stop iptables will NEVER
> touch this rules
Hmmm, seems to be optional, depending how IPTABLES_SAVE_ON_STOP (etc.)
is set in /etc/sysconfig/iptables-config.
--
Les Mikesell
lesmikesell at gmail.com
More information about the CentOS
mailing list