shoop icon indicating copy to clipboard operation
shoop copied to clipboard

NAT confuses shoop

Open hukka opened this issue 9 years ago • 2 comments

  • opening UDT connection...[E] errrrrrrr connecting to 192.168.1.4:60500 - UdtError { err_code: 1001, err_msg: "Connection setup failure: connection time out." }

which makes sense, as the client is not inside the LAN. But it should make the UDT connection to the same ip as the original ssh did.

hukka avatar Aug 09 '16 12:08 hukka

Hmm, I guess that means we can't trust the SSH_CONNECTION env variable? I think that's how mosh does it though, I wonder what's different about your situation.

mcginty avatar Aug 09 '16 17:08 mcginty

Indeed, when connecting from NATed client to NATed server, the SSH_CONNECTION shows the client's external IP on the server, but the internal IP for the server itself. mosh works fine, but I don't know how it decides the IPs to send the UDP packets.

hukka avatar Aug 10 '16 11:08 hukka