I set up a server which is connected to my router. The router forwards a port of my server. So when I scan that port using http://www.t1shopper.com/tools/port-scan/ I got:
188.143.126.14 is responding on port 10415 ()
In other words the handshake was successful.
But when I try to ssh to that port it fails - because the SYN ACK not arrives to the client and start retransmitting the SYN. Although SYN ACK was sent out by the server. I compared the working case and the wrong case but I have not found any differences. The only difference is that SYN ACK arrives in the first case, but not in the second one.
I can reach the ssh on the subnet. There is no firewall neither on the router nor on the server.
What could be the problem?
Update: and the other difference is that the scanning was done from outside, but the ssh connection was made from the subnet using the public IP. When I used the local IP it worked. But now I tried to connect using my smarthones data - and this time it worked. So it seems that initiating the connection from inside with the public IP causing some routing issue.
bb@lenovo:~$ ssh balazs@188.143.126.14 -p 10415
ssh: connect to host 188.143.126.14 port 10415: Connection timed out
bb@lenovo:~$ ssh balazs@192.168.1.70 -p 10415
balazs@192.168.1.70's password: