iptables refuses connections to squid port on CentOS 5.5

Solution 1:

Your rule has been added to the end of the existing RH-Firewall-1-INPUT chain and as such is after the blanket reject rule.

Edit the file again and put your

-A RH-Firewall-1-INPUT -m state --state NEW,ESTABLISHED,RELATED -m tcp -p tcp --dport 8080 -j ACCEPT

rule above the

-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited