ShadowJonathan / eduP2P

An authenticated peer-to-peer network overlay
MIT License
3 stars 1 forks source link

[E] Userspace `WireGuardHost` from wireguard-go #49

Open ShadowJonathan opened 2 months ago

ShadowJonathan commented 2 months ago

Segments

Description

I'd like to make a WireGuardHost that will "simply work", a default implementation for every platform.

Tailscale is pretty closely integrated with WireGuard, and seeing their codebase, we could probably get inspired off of it.

Wireguard-go's code is available with the import golang.zx2c4.com/wireguard, I think that integrating with it closely in the same userspace as edup2p can/will achieve a ton of throughput.

There are three major components:

This host would convert the reads and writes from/to the "bind" to packets to send to toversok, and attach itself to the TUN device in the background.