IPTables

Config IPTables to provide a firewall by only exposing ports you want to communicate through.

service iptables start

chkconfig iptables on

service iptables status

iptables -I RH-Firewall-1-INPUT 3 -p tcp -m tcp –dport 80 –tcp-flags SYN,RST,ACK SYN -j ACCEPT

/etc/init.d/iptables save

Comments are closed.