I'm trying to open up port 8080 on my CentOS 5, Apache 2.2.3 server. When I go to ip:8080/mydirectory - it times out. I have ran these commands thus far:
$ iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
$ service iptables save
$ iptables -A OUTPUT -p tcp --dport 8080 -j ACCEPT
$ service iptables save
$ iptables -A FORWARD -p tcp --dport 8080 -j ACCEPT
$ service iptables save
$ service iptables restart
$ service httpd restart
Below is the output of my iptables
$ iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
I edited apache to reflect this addition:
<VirtualHost *:8080>
DocumentRoot "/var/www/html"
ServerName dedicatedipgoeshere
</VirtualHost>
Thank you for any help!
localhost 8080and see if something replies. Your default policy is ACCEPT so the additional ACCEPT policies you have added makes no difference. – Mattias Ahnberg Jan 7 at 19:15--dport 8080. It should say--sport 8080. This is not the cause of the problem, however, as your policies are all ACCEPT anyway. – Ladadadada Jan 8 at 1:05