Answer the question
In order to leave comments, you need to log in
No iptables file in centOS 6, how to properly generate it?
Hey!
Today I switched to CentOS 6 from the fifth version... many surprises.
Can't find iptables file. It's not in /etc/sysconfig/iptables.
So far, the ports have been opened simply with commands like:
iptables -I INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT
Answer the question
In order to leave comments, you need to log in
iptables-save > /etc/sysconfig/iptables
/etc/sysconfig/iptables - default system config, rules are loaded from it at boot
Look in the /etc/sysconfig/network-scripts directory to see if there is any ifup-* script in there .
The behavior you describe is not default for centos6.
Try to generate /etc/sysconfig/iptables with the system-config-firewall-tui utility
The package itself is called system-config-firewall-tui-1.2.27-5.el6.noarch
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question