Red Hat Bugzilla – Bug 85203
iptables rules saved to /etc/sysconfig/iptables do not restore on startup
Last modified: 2007-04-18 12:51:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Description of problem:
Rules are created and stored in /etc/sysconfig/iptables without problems.
When the system is started up these rules do not restore. A set of "blanket"
rules are applied. However if i execute "/sbin/service iptables restart", the
rules that I have created load correctly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create custom IPTABLES rules after flushing current rules.
2. use iptables-save > /etc/sysconfig/iptables
3. restart the system
4. use iptables -L and the ruleset created does not appear, standard rules
5. use /sbin/service restart iptables
6. use iptables -L and the correct rules appear.
You can close this report because it is not a bug.
The correct procedure is to enable service "iptables" with running "chkconfig
iptables on". That will enable the script for current run-level.
So which runlevel should I be assigning iptables to please?
The one you use and all run-levels that should enable the iptables rules.
Look into redhat-config-services or consult "man chkconfig" for more information.
Please move further discussion to a mailing-list.