Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if two nodes behind nat without public ip, can they make mesh vpn? #7

Open
youxiaojie opened this issue Jun 5, 2019 · 8 comments
Open

Comments

@youxiaojie
Copy link

if two nodes A and B behind nat without public ip, can they make mesh vpn? if no,
if there is node C with pub ip and port, can node A and B get each other's NATed pub ip and port and make a connexion? does your program make help?

@manuels
Copy link
Owner

manuels commented Jun 5, 2019

What do you mean by "nat without public ip"? Do you mean no internet access or no dedicated IP?

@whirm
Copy link

whirm commented Jun 9, 2019

In the first part I guess he's asking if there's local peer discovery? (A and B finding each other on the LAN) I'm very interested in having that too.

@manuels
Copy link
Owner

manuels commented Jun 10, 2019

@whirm, I'm afraid, this is not supported right now unless you run a OpenDHT bootstrapping node in your LAN.

@youxiaojie
Copy link
Author

youxiaojie commented Jun 11, 2019

I mean A has 192.168.1.5 at home behind firewall and B has 172.16.1.3 in office behind firewall, both firewall are not configurable by me. If without a C with public ip, did they make mesh vpn each other by your wireguard-p2p? if I get a vpc with public ip and run your software, did A B are exchange information after connection established or all the information are relayed by C? thanks. because vpc is abroad, if all udp packet are relayed by C that is very slow, so I ask you if A and B can exchange udp directly,after getting each others NATed port and ip under the node C's help.

@danisztls
Copy link

danisztls commented Apr 30, 2020

I think a similar question for which unfortunately I believe the answer is know. My ISP put me under a proxy and there is no transparent NAT. My public IP is not mine but of the proxy server. So any incoming connections will be refused while outgoing will be somewhat fine. Is there a way to establish a direct tunnel between A and B clients with similar network condition? I don't think so but I just discovered this project and I may try it.

@manuels
Copy link
Owner

manuels commented May 1, 2020

@danielsouzat you could try a tool that wraps UDP in fake-TCP. I have seen a tool around for that but I cannot remember the name.

@danisztls
Copy link

That may work but wouldn't it add a lot of overhead?

@manuels
Copy link
Owner

manuels commented May 2, 2020

That depends on how you define "a lot". You'd probably have to add a TCP header which increases the package size by a few bytes and I think computation is negligible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants