I'm running a VmWare with an application under JBoss starting up on port 8080. I'm able to access the app from outside the VM if the iptables are off.
However, I must turn on iptables due to some rules, but I couldn't open port 8080.
I tried: -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
and -A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
but no success.
Output of netstat -tulpn
with iptables rule:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 6617/java
What am I missing here?
Thanks!