ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.29k stars 943 forks source link

Will it possible to implement tcp hole punching ? #368

Open tlsalex opened 4 years ago

tlsalex commented 4 years ago

Just curious, will it possible to implement tcp hole punching ?

Logan007 commented 4 years ago

Generally speaking, I believe that everything is possible… :wink:

tcp hole punching would as a prerequisite require to implement tcp in a first step, see here.

And then, for the tcp hole punching, it seems that extensive control over very special packet-properties (SYN?) is required.

Maybe some network expert would be able to do it. However, it looks like heaps of work. If you want to give it a try, your contributions are very welcome to this open-minded community! Just keep in mind that in a holistic view, tcp being stateful is considered slower than udp due to handshake and other things. So, it should always be an additional option over the preferred udp.