FreePBX Firewall Blocking all Ports

Hi,

Synopsis:
I am using latest version of FreePBX 15. Hosted AWS EC2. When I take snapshot and restore volume as soon as firewall starts all my ports are blocked. However, I can netstat ports as Listening. I can access the Instance when firewall isn’t running.I have run fail2ban-client and there are no bans.

I flushed the iptables but this has had no effect. See below for outputs.

I don’t understand why iptables has changed rules after flushing. The first is as it should be and second is afterwards.
Iptables -S
-A INPUT -p tcp -m multiport --dports 22 -j fail2ban-SSH
-A INPUT -p tcp -m multiport --dports 443 -j fail2ban-HTTPS
-A INPUT -p tcp -m multiport --dports 5060 -j fail2ban-SIP

sudo iptables -S | grep 22 443
-A fpbxsvc-https -p tcp -m tcp --dport 443 -j ACCEPT
-A fpbxsvc-ssh -p tcp -m tcp --dport 22 -j ACCEPT
udo netstat -tlnp | grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 927/sshd

sh-4.2$ sudo iptables -nL | grep 22
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:22

Thanks!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.