* WireGuard-p2p: A tool for NAT traversal
@ 2017-04-30 10:41 Manuel Schölling
2017-04-30 12:08 ` Jason A. Donenfeld
0 siblings, 1 reply; 4+ messages in thread
From: Manuel Schölling @ 2017-04-30 10:41 UTC (permalink / raw)
To: wireguard
Hi,
I wrote a python tool for scenarios where both WireGuard peers are
behind a NAT.
It supports public key exchange, NAT traversal using STUN, and IP
address exchange. The exchange of this information is done using a DHT.
You can find it here:
https://github.com/manuels/wireguard-p2p
Any feedback would be appreciated.
Bye,
Manuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: WireGuard-p2p: A tool for NAT traversal
2017-04-30 10:41 WireGuard-p2p: A tool for NAT traversal Manuel Schölling
@ 2017-04-30 12:08 ` Jason A. Donenfeld
2017-09-22 1:11 ` Jason A. Donenfeld
0 siblings, 1 reply; 4+ messages in thread
From: Jason A. Donenfeld @ 2017-04-30 12:08 UTC (permalink / raw)
To: Manuel Schölling; +Cc: WireGuard mailing list
Hey Manuel,
This is fantastic!! Really wonderful. I'll give this a try and read
through the code soon. Thanks for writing this and sharing.
As more and more WireGuard projects proliferate, I should add a
section to the website with a list of useful tools like this one. It's
definitely something I could imagine using.
Jason
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: WireGuard-p2p: A tool for NAT traversal
2017-04-30 12:08 ` Jason A. Donenfeld
@ 2017-09-22 1:11 ` Jason A. Donenfeld
2017-09-25 15:31 ` Manuel Schölling
0 siblings, 1 reply; 4+ messages in thread
From: Jason A. Donenfeld @ 2017-09-22 1:11 UTC (permalink / raw)
To: Manuel Schölling; +Cc: WireGuard mailing list
Hey Manuel,
Looks like you rewrote this project from python into rust. Cool!
I'd be interested to learn what's new, what's changed, and what's up
in general. I always thought this was a pretty neat idea.
Jason
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: WireGuard-p2p: A tool for NAT traversal
2017-09-22 1:11 ` Jason A. Donenfeld
@ 2017-09-25 15:31 ` Manuel Schölling
0 siblings, 0 replies; 4+ messages in thread
From: Manuel Schölling @ 2017-09-25 15:31 UTC (permalink / raw)
To: Jason A. Donenfeld; +Cc: WireGuard mailing list
Hi Jason,
On Fri, 2017-09-22 at 03:11 +0200, Jason A. Donenfeld wrote:
> Looks like you rewrote this project from python into rust. Cool!
Yes, it was about time. It took quite a while but I think it was worth
while.
> I'd be interested to learn what's new, what's changed, and what's up
> in general. I always thought this was a pretty neat idea.
>From the functional point of view there is not a lot of change.
You can
A) exchange your public keys using wireguard-p2p (publish & search
modes)
B) setup a wireguard peer-to-peer connection
A) Exchange public keys
-----------------------
You can simply choose a name for your computer (e.g. alice_laptop) and
then bob can search for it:
on Alice's computer: $ cargo run publish wg0 alice_laptop
on Bob's computer: $ cargo run search alice_laptop
=> lists Alice's public key on Bob's console
B) peer-to-peer connection
--------------------------
Just setup your wireguard connections (/etc/wireguard/*.conf files) as
usual but you can leave out the Endpoint.
Add the device and the public keys of the corresponding peers to
/etc/wireguard-p2p.conf like this:
[wg0]
Peer1=<bobs_public_key>
Now start wireguard-p2p using
$ cargo run daemon
wireguard-p2p will try to determine your IP/port using STUN, publish it
in a distributed-hash-table (bulletinboard-dht) and will try to lookup
Bob's IP/port in the distributed-hash-table, too.
If it finds Bob's IP/port, it will proxy data between Alice and Bob.
It's not perfect, yet, but if you guys find some issues, let me know!
Bye,
Manuel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-25 15:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-30 10:41 WireGuard-p2p: A tool for NAT traversal Manuel Schölling
2017-04-30 12:08 ` Jason A. Donenfeld
2017-09-22 1:11 ` Jason A. Donenfeld
2017-09-25 15:31 ` Manuel Schölling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).