Open ports for Apache Tomcat-7.0.32 on Linux Mandriva

Posted by ivanov-void on Server Fault See other posts from Server Fault or by ivanov-void
Published on 2012-10-16T08:06:44Z Indexed on 2012/10/16 11:05 UTC
Read the original article Hit count: 279

Filed under:
|
|

I installed Apache Tomcat-7.0.32 on Linux Mandriva and I want to make it accessible. for this I need to open ports in iptables.

I added the following rules-

iptables -A INPUT -p tcp -m tcp --dport 8081 --syn -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8010 --syn -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8444 --syn -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8006 --syn -j ACCEPT

then save and restart iptables -

/etc/init.d/iptables save
/etc/init.d/iptables restart

verify, that ports is open -

netstat -tulpn | less

I am running command -

netstat-ntpl | grep java

and see -

enter image description here

When I disable the firewall, I see the start page of the server on request -

http://server_ip:8081/

When enable - server not accessible from outside.

In what may be the cause? I would be most grateful for the information!

Thank you!

© Server Fault or respective owner

Related posts about java

Related posts about linux