1
Let's say I open this tunnel from my local:
$ ssh -l user@135.95.66.88 -R 2401:135.115.12.68:2401
Then from 135.95.66.88 I can verify the tunnel:
$ telnet localhost 2401
I know that by using lsof I can see the IP address behind the ssh sessions (my local IP).
But, how can I know from (135.95.66.88) what IP address is the traffic being sent to (in this case 135.115.12.68).
Thank you.
Yes, I tried that, but it refers to the localhost, this is the output: tcp 0 0 ::1:31156 ::1:2401 ESTABLISHED 11807/telnet – Alex Pi – 2014-12-24T17:23:28.120
Then filter out which PID is LISTEN'ing on 2401/tcp and then filter by this PId (You'll see where it connects). Similar data may be obtained by using
lsof -p PID
. – kestasx – 2014-12-24T21:32:58.870