Re: my iptables setting not loaded after reboot in fc5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 5/18/06, Hongwei Li <hongwei@xxxxxxxxx> wrote:
> First you should set the iptables rules to what you desire. Then you should
> save them with
>
> iptables-save > /etc/sysconfig/iptables
>
> and having set the settings I refered to to "yes", the iptables should
> survive after a reboot.
> It works perfectly with my system. I think the problem is that you
> rebooted/restarted
> iptables before setting them up, and that's why you don't get any rules now.
>
-- NO. I did exactly as what you said:
1. set my rules in /etc/sysconfig/iptables


No, you did not understand what I meant by setting the rules. I meant manually giving all
the necessary iptable commands from the command line to set up your firewall to your
liking. I did NOT say anywhere that you should edit the /etc/sysconfig/iptables file. So here
we go again:

1) Edit /etc/sysconfig/iptables-config and change to "yes" both the IPTABLES_SAVE_ON_STOP,
IPTABLES_SAVE_ON_RESTART options

2) If you like the CURRENT firewall setup that you see by giving the command:

iptables -v -L

proceed to step 3, otherwise issue the necessary 'iptables' commands from the
command line to fix the firewall settings to your liking. Alternatively you can use
the GUI from the Administrator Menu to get a basic firewall going.

3) Now with the CURRENT firewall all set you can save it by giving:

iptables-save > /etc/sysconfig/iptables

4) Let's test the whole thing now by giving:

/sbin/service iptables restart

You should be able to see the exact same firewall settings now, as before the restart, which
is an indication that the settings survived.

Filippos



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux