My new centos 6.5 cloud server came with this /etc/sysconfig/iptablesinside we have:# Generated by iptables-save v1.4.7 on Mon Jun 16 20:04:05 2014*filter:INPUT ACCEPT [8:607]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [6:1089]COMMIT# Completed on Mon Jun 16 20:04:05 2014but it looks like regardless if i stop or start iptables.. other ports remain open. i know this because i installed things such as webmin which was working fine on port 10000and i also added a port to httpd.conf listen 81as well as a virtual host for port 81.it all works regardless of if iptables is started or stopped.which means this above iptables file i have needs modifications.i would like to disable all ports except for port 80 and 22from there on i can test and add other ports myself.
/etc/sysconfig/iptables : how to block everything except for port 80 and 22?
iptables