Answer the question
In order to leave comments, you need to log in
What are the P2P NAT-aware VPN solutions?
The task, it would seem, is simple: there are 2 networks in different cities, both behind NAT. Also, there is a server with an external address in the third city.
A solution is needed so that these two networks send traffic directly to each other, and break through NATs using a third server (as a STUN). What is needed is a direct connection bypassing NATA. Banal OpenVPN can also relay through the server, but this option is not suitable, because 2-3-fold delays are obtained, and the flow will be quite fat.
Relay only as a last resort -- if both clients are behind a symmetric NAT (the type of NAT can suddenly change), then relaying is still acceptable.
As I understand it, OpenVPN can only pass traffic through itself, it cannot forward clients directly. I dug more towards freelan. It seems they write that they can do everything, but in fact, I didn’t understand how to do it without port forwarding on NAT, which I don’t have access to.
I also tried Teredo, but it's completely random with it - it can work, or it can fall off after 20 minutes and not work until the next coming, it's not clear what it depends on.
Are there any solutions for such a scheme? Don't offer Linux-only, you need both Windows and Linux.
Answer the question
In order to leave comments, you need to log in
Neshl, it looks like this open source product does what it needs!
zerotier.com
Peer to peer connection setup goes like this:
A wants to send a packet to B, but since it has no direct path it sends it upstream to R (a root).
If R has a direct link to B, it forwards the packet there. Otherwise it sends the packet upstream until the planetary roots are reached. Planetary roots know about all nodes, so eventually the packet will reach B if B is online.
R also sends a message called rendezvous to A containing hints about how it might reach B. Meanwhile the root that forwards the packet to B sends rendezvous informing B how it might reach A.
A and B get their rendezvous messages and attempt to send test messages to each other, possibly accomplishing hole punching of any NATs or stateful firewalls that happen to be in the way. If this works a direct link is established and packets no longer need to take the scenic route.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question