iptables forwarding not working/iptables-save not saving

Mads Kiilerich mads at kiilerich.com
Fri Nov 21 22:42:18 UTC 2008


Mike Cloaked wrote:
> Rick Stevens-3 wrote:
>   
>> If you're using the iptables command to directly change your setup, you
>> have to use
>>
>> 	iptables-save >/etc/sysconfig/iptables
>>
>> to save the current setup.  On boot, the system does an
>>
>> 	iptables-restore </etc/sysconfig/iptables
>>
>> to restore those settings.  Or you can edit /etc/sysconfig/iptables
>>     
> Previously 
> service iptables save
> used to work  - does this not work for the newest systems?
>   

Yes, it works, and it plays tricks with storing temporarily in 
/etc/sysconfig/iptables.save to get the selinux domains rights. If it 
doesn't work then ... something is broken ;-)

Redirecting directly as described above doesn't work with selinux.

/Mads




More information about the test mailing list