Whats the output of the /etc/sysconfig/iptables file?
That is the file that those scripts will mess with..
Essentially for just port 80 & SSH from anywhere to your machine and dropping everything else would look like:
INPUT traffic.
-protocol = tcp
port = 80
new connection
accept.
-A OUTPUT -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
Means that anything already connected is allowed.
Code:
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
#
#
#
-A INPUT -p tcp -m tcp -m state --dport 80 --state NEW -j ACCEPT
-A INPUT -p tcp -m tcp -m state --dport 22 --state NEW -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
#
#
#
# DROP EVERYTHING ELSE
-A INPUT -j DROP
#
COMMIT