SOLVED iptables not loading properly

kameleon

New Member
Joined
Jul 22, 2009
Messages
28
Reaction score
2
I am running the Incredible PBX 16-15 on Centos 7 and am having a few issues. First it appears that the iptables do not load properly unless I do another ./add-ip something 123.34.56.78 that was not there before. Granted this just happened this morning but I also just put it into production this morning also. It might be a hiccup but might not be.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,083
Reaction score
2,601
Walk us through the steps you're using to test this and what the results are. Thanks.
 

kameleon

New Member
Joined
Jul 22, 2009
Messages
28
Reaction score
2
Being that it only does it on a reboot, it will be next weekend before I can bring it down to test more. Will report back if it does it again.
 

kameleon

New Member
Joined
Jul 22, 2009
Messages
28
Reaction score
2
So I was able to bring it down today. Upon the first reboot (VM running, just issued reboot command from root prompt) I was unable to ssh in and the web interface was not responding. I connected via the hyper-v console and was greeted by an "asterisk could not start" message. I was able to log in and run iptables --list which listed what looked like the default entries (local LAN ranges allowed through and ISP allowed through). So I issue the reboot command again and watch it as everything comes up. Looks like everything starts properly except I still cannot ssh or web in. I log in as root and issue the iptables --list command only to be greeted with the same iptables as before. So I run the add-ip command from /root/ and add another IP on my local subnet and magically a TON of entries show up when I run iptables --list now and everything works as expected.

This is not a huge issue except for the fact if something happens and the vm host reboots the guest and I am not where I can remote in and fix it. Any thoughts on this? I do have the "default" and after add-ip iptables I can send if needed.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
15,083
Reaction score
2,601
Try adding /usr/local/sbin/iptables-restart to /etc/rc.local to force a restart on bootup.
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,319
Messages
137,021
Members
14,550
Latest member
treimers