i have added a rule in iptables in my server like this.
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8005 -j ACCEPT
allowing port 8005.
when run this command netstat -plunt
it shows that port 8005 is opened. result is as under
tcp 0 127.0.0.1:8005 0.0.0.0:* LISTEN 22128/java
i have saved iptables, restarted services for iptables and tomcat5. but still i am unable to access tomcat5 from browser.
what might be the issue?
i have configured port 8005
for tomcat in server.xml
my iptables -L -nv
out put is as attached
connector port config is as under
<Server port="8005" shutdown="SHUTDOWN">
RELATED
andESTABLISHED
traffic ? You might want to add the output ofiptables -L -nv
to your question. Since you're only listening on localhost, I'm curious, how are you testing this?