1
1
As we discussed on my question, the question comes to this point:
Could we establish a TCP connection via UDP Hole Punching technique?
-- Original Question / History --
I'm using reverse tunnel feature of OpenSSH in order to connect an SSH server that is behind a firewall.
Now I can connect server-behind-firewall
machine by issuing
ssh me@my-known-server -p 12345
This way, all of my-laptop
's traffic is routed to my-known-server
, and my-known-server
is routing this traffic to the server-behind-firewall
machine. I think this is inefficient.
What I am looking for is a technique that will provide same functionality but using bittorrent's technique (which is, peers create UDP connections to the my-known-server
(tracker) and sends packets to eachother directly)
Is there any way to achieve this functionality?
Edit:
Bittorrent connection is created via "UDP hole punching" technique.
Edit-2:
Apparently what I was looking for is making an SSH connection over "Hamachi" like software which uses NAT traversal technique.
Possible duplicate of How to use UDP hole punching for a SSH tunnel / session.
– Ramhound – 2016-08-17T10:50:08.760