Re: Iptables not saving...

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

 



On Sun, 2006-05-07 at 22:22 -0400, Devon Harding wrote:
> >
> > Were the rules set up the way you wanted before running the service command?
> >
> Yes
> 
> > Did it appear to work correctly? You should get output like the following:
> > Saving firewall rules to /etc/sysconfig/iptables:          [  OK  ]
> >
> Yes
> 
> > Did /etc/sysconfig/iptables get updated?
> >
> & Yes
> 
> > Things that would cause problems are not running the command as root or
> > not having /sbin in your path when you run the command.
> >
> I got it working by putting this command in my /etc/rc.local:
> 
> /sbin/iptables-restore < /etc/sysconfig/iptables
> 
This line (at least similar) is in /etc/init.d/iptables in the start()
function.

Is there a chance the proper script is not getting called to start
iptables?
Is iptables being started by the system or by a manual script you run?

There should be something similar to the following in /etc/rc.d/rc3.d
and /etc/rc.d/rc5.d
  /etc/rc.d/rc5.d/S08iptables

Notice the 'S08' on that file name, which tells the system to
automatically (S)tart iptables.
If that file is not there or if it is named K92iptables then it is not
getting started by the system and does not auto-load your rules.


> Not sure why this even works, but it does...
> 
> Thanks All,
> 

-- 
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