Open ports for Apache Tomcat-7.0.32 on Linux Mandriva
- by ivanov-void
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 -
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!