Posts Tagged "iptables"

Open Port 80 for Apache in iptables on Centos or Red Hat

Run the following command while logged in as root or sudo:

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

#Make the changes permanent
/sbin/iptables-save