Hi
I modified the /etc/sysconfig/iptables to match my needs but whenever i restart the server, the default settings come again. How to keep my /etc/sysconfig/iptables even if i reboot ?
try "service iptables save" command
Thibaut Lassalle wrote:
Hi
I modified the /etc/sysconfig/iptables to match my needs but whenever i restart the server, the default settings come again. How to keep my /etc/sysconfig/iptables even if i reboot ?
Thibaut http://www.linkedin.com/in/tlassalle
--fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
still doesn't work ... At reboot, it copies /etc/sysconfig/iptables to /etc/sysconfig/ iptables.save and put default values in /etc/sysconfig/iptables
On Jan 8, 2007, at 2:50 PM, Raina Otoni wrote:
try "service iptables save" command
Thibaut Lassalle wrote:
Hi
I modified the /etc/sysconfig/iptables to match my needs but whenever i restart the server, the default settings come again. How to keep my /etc/sysconfig/iptables even if i reboot ?
On Mon, Jan 08, 2007 at 15:14:34 +0000, Thibaut Lassalle thibaut@fuse.co.uk wrote:
still doesn't work ... At reboot, it copies /etc/sysconfig/iptables to /etc/sysconfig/ iptables.save and put default values in /etc/sysconfig/iptables
Did you do the "service iptables save" after making sure that iptables had the correct rules? The save command just saves whatever the current rules are, not what is currently in any config file.
On 1/9/07, Bruno Wolff III bruno@wolff.to wrote:
On Mon, Jan 08, 2007 at 15:14:34 +0000, Thibaut Lassalle thibaut@fuse.co.uk wrote:
still doesn't work ... At reboot, it copies /etc/sysconfig/iptables to /etc/sysconfig/ iptables.save and put default values in /etc/sysconfig/iptables
Did you do the "service iptables save" after making sure that iptables had the correct rules? The save command just saves whatever the current rules are, not what is currently in any config file.
And remember to be root to execute de above command.
regards,
Either that, or to make sure, I always did an iptables-restore < myrulefile.
HTH,
Chris Norman <!-- cnorman@rnibncw.ac.uk --> ----- Original Message ----- From: "Bruno Wolff III" bruno@wolff.to To: "Thibaut Lassalle" thibaut@fuse.co.uk Cc: "For users of Fedora" fedora-list@redhat.com Sent: Tuesday, January 09, 2007 5:23 PM Subject: Re: iptables on fedora 5
On Mon, Jan 08, 2007 at 15:14:34 +0000, Thibaut Lassalle thibaut@fuse.co.uk wrote:
still doesn't work ... At reboot, it copies /etc/sysconfig/iptables to /etc/sysconfig/ iptables.save and put default values in /etc/sysconfig/iptables
Did you do the "service iptables save" after making sure that iptables had the correct rules? The save command just saves whatever the current rules are, not what is currently in any config file.
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
On Mon, 08 Jan 2007 13:36:02 +0000, Thibaut Lassalle wrote:
Hi
I modified the /etc/sysconfig/iptables to match my needs but whenever i restart the server, the default settings come again. How to keep my /etc/sysconfig/iptables even if i reboot ?
cd /etc/sysconfig/ mv iptables iptables.orig /sbin/iptables-save > iptables