Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
root@ip-184-168-116-73 [/etc/sysconfig]# vim iptables # Generated by iptables-save v1.3.5 on Mon Jan 27 12:38:23 2014 *mangle :PREROUTING ACCEPT [162046:22599185] :INPUT ACCEPT [162046:22599185] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [172917:32155415] :POSTROUTING ACCEPT [172917:32155415] COMMIT # Completed on Mon Jan 27 12:38:23 2014 # Generated by iptables-save v1.3.5 on Mon Jan 27 12:38:23 2014 *filter :INPUT ACCEPT [162043:22599033] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [172914:32155295] :acctboth - [0:0] -A INPUT -j acctboth -A INPUT -p tcp -m tcp --dport 9000 -j ACCEPT -A OUTPUT -j acctboth -A OUTPUT -p tcp -m tcp --sport 9000 -j ACCEPT