manuels / wireguard-p2p

A tool for setting up WireGuard connections from peer to peer.
327 stars 24 forks source link
nat-traversal p2p wireguard

Exchanges your IP via a OpenDHT.

Just run wg-quick up wg0 and then sudo wireguard-p2p on both peers. wireguard-p2p will determine your current public IP, exchange it via OpenDHT, set the endpoint to a localhost port and proxy packages between both peers.

Install

cargo install wireguard-p2p

Dependencies

OpenDHT

OpenDHT will have to be discoverable by pkgconfig

Follow the build/install instructions here

Fedora

sudo dnf install -y jsoncpp-devel http-parser-devel