troubleshooting Question

IPTables change unable to survive reboot

Avatar of swallsvcs
swallsvcsFlag for United States of America asked on
Linux NetworkingSoftware FirewallsLinux Distributions
10 Comments1 Solution1102 ViewsLast Modified:
What's wrong with this picture??  (See Code Below)

iptables -N PBX_CUST
iptables -A PBX_CUST -p tcp -m tcp --dport 5038 -j ACCEPT
iptables -A PBX_CUST -p tcp -m tcp --dport 50000 -j ACCEPT
iptables -A PBX_CUST -p tcp -m tcp --dport 50003 -j ACCEPT
iptables -I INPUT 54 -j PBX_CUST
service iptables save

Although the iptables configuration is saved (and is confirmed still saved to /etc/sysconfig/iptables even after a reboot) this is not the configuration that is loaded on boot.  I have checked /etc/rc.d/init.d/iptables and from what I can tell (and I will admit I'm a little lost in that file) it doesn't appear to be trying to load any configuration information from anywhere else.  (/etc/init.d is a symlink to /etc/rc.d/init.d just FYI)

It should be mentioned however that iptables is getting populated from somewhere however as the settings configured on the table prior to my edits are what is getting restored on boot up.

What am I doing wrong?  I'm literally pulling out my hair over here...

CentOS release 5.5 (Final)
Elastix 2.0.0-41
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros