I have netgear router. Initially I had forwarded all tcp ports to internal server 192.168.0.100 centos
I was able to ssh into that using my ssh user@publicip
.
now I have installed Ubuntu trusty with IP 192.168.0.32
and forwarded all ports on router to that IP.
But I am not able to ssh from outside. I get error ssh: connect to host 12.15.14.44 port 22: Connection timed out.
I am able to ssh within internal network.
I have no firewall
and no selinux
enable in Ubuntu.
What else can I check?
Its not only ssh but port 80 is also not accessible
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:38758 0.0.0.0:* LISTEN 31944/rpc.statd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 7343/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 692/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 21368/sshd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 7911/postgres
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7605/master
tcp6 0 0 :::47082 :::* LISTEN 31944/rpc.statd
tcp6 0 0 :::111 :::* LISTEN 692/rpcbind
tcp6 0 0 :::80 :::* LISTEN 20447/apache2
tcp6 0 0 :::22 :::* LISTEN 21368/sshd
tcp6 0 0 :::25 :::* LISTEN 7605/master