- sudo iptables-save -c
- # Generated by iptables-save v1.4.21 on Fri May 20 23:15:06 2016
- *security
- :INPUT ACCEPT [1873:278195]
- :FORWARD ACCEPT [0:0]
- :OUTPUT ACCEPT [542:99996]
- COMMIT
- # Completed on Fri May 20 23:15:06 2016
- # Generated by iptables-save v1.4.21 on Fri May 20 23:15:06 2016
- *raw
- :PREROUTING ACCEPT [3950:591093]
- :OUTPUT ACCEPT [563:103216]
- COMMIT
- # Completed on Fri May 20 23:15:06 2016
- # Generated by iptables-save v1.4.21 on Fri May 20 23:15:06 2016
- *mangle
- :PREROUTING ACCEPT [4018:607310]
- :INPUT ACCEPT [1934:285204]
- :FORWARD ACCEPT [0:0]
- :OUTPUT ACCEPT [579:105696]
- :POSTROUTING ACCEPT [579:105696]
- COMMIT
- # Completed on Fri May 20 23:15:06 2016
- # Generated by iptables-save v1.4.21 on Fri May 20 23:15:06 2016
- *nat
- :PREROUTING ACCEPT [2139:328843]
- :INPUT ACCEPT [54:6572]
- :OUTPUT ACCEPT [18:1288]
- :POSTROUTING ACCEPT [18:1288]
- COMMIT
- # Completed on Fri May 20 23:15:06 2016
- # Generated by iptables-save v1.4.21 on Fri May 20 23:15:06 2016
- *filter
- :INPUT ACCEPT [949:178667]
- :FORWARD ACCEPT [0:0]
- :OUTPUT ACCEPT [314:69148]
- :fail2ban-freeswitch-dos - [0:0]
- :fail2ban-freeswitch-tcp - [0:0]
- :fail2ban-freeswitch-udp - [0:0]
- :fail2ban-ssh - [0:0]
- :services - [0:0]
- [0:0] -A INPUT -p tcp -m tcp --dport 5432 -j ACCEPT
- [771332:224775387] -A INPUT -j fail2ban-freeswitch-tcp
- [7:420] -A INPUT -p tcp -m tcp --dport 5080 -j ACCEPT
- [0:0] -A INPUT -p udp -m udp --dport 5432 -j ACCEPT
- [223:7136] -A INPUT -p udp -m udp --dport 5060 -j ACCEPT
- [0:0] -A INPUT -p udp -m udp --dport 5066 -j ACCEPT
- [0:0] -A INPUT -p udp -m udp --dport 5060:5090 -j ACCEPT
- [28:1624] -A INPUT -p tcp -m tcp --dport 5060:5090 -j ACCEPT
- [2125:204580] -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
- [0:0] -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
- [0:0] -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
- [0:0] -A OUTPUT -p udp -m udp --dport 5060:5090 -j ACCEPT
- [7:388] -A OUTPUT -p tcp -m tcp --dport 5060:5090 -j ACCEPT
- [771330:224773764] -A fail2ban-freeswitch-tcp -j RETURN
- [762978:223633684] -A fail2ban-freeswitch-udp -j RETURN
- [0:0] -A services -p tcp -m multiport --dports 5060,5080,5066 -m comment --comment "SIP tcp" -j ACCEPT
- [0:0] -A services -p udp -m multiport --dports 5060,5080,5066 -m comment --comment "SIP tcp" -j ACCEPT
- COMMIT
- # Completed on Fri May 20 23:15:06 2016
- installer@freeSwitch:~$ ^C
- installer@freeSwitch:~$