Iptables – Cannot connect on open port

iptablesjiratomcat

I just installed Jira with embedded Tomcat, which runs on port 8080.
I gave iptables -I INPUT -p tcp --dport 8080 -j ACCEPT and netstat -tpln says:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      645/sshd            
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      29336/java
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      13598/postgres      
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1101/master                 
tcp6       0      0 :::22                   :::*                    LISTEN      645/sshd            
tcp6       0      0 ::1:5432                :::*                    LISTEN      13598/postgres      
tcp6       0      0 ::1:25                  :::*                    LISTEN      1101/master         
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      27788/java
tcp6        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      29336/java 

Locally, it works. From remote it doesn't. What should I checkout to get a better insight on the problem?

PS I've also followed this to save iptables changes: https://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7

PPS I executed the previous commands also with ip6tables

Best Answer

It seems, Tomcat listens on IPv6 only. May be you missed something during installation?

Check this link for further information: https://confluence.atlassian.com/display/JIRAKB/How+to+run+JIRA+on+a+specific+IP