Install Wiregarden

Wiregarden is currently only supported on Linux.

Download the latest Wiregarden binary release for your platform.

Install into your $PATH as wiregarden.


sudo cp wiregarden_linux_amd64 /usr/local/bin/wiregarden
sudo chmod +x /usr/local/bin/wiregarden

One-time setup

Install Wireguard dependencies and the systemd service agent.


sudo wiregarden setup

Add devices

Start a network on a device that will be network-accessible to all the others. For most, this will need to be a machine on the public internet with an accessible UDP port. A free-tier instance in a public cloud works great for this!


sudo env WIREGARDEN_SUBSCRIPTION=Login_to_get_your_token \
    wiregarden up --network my-net --endpoint my-public-ip:my-public-port

Add other devices to the network.


sudo env WIREGARDEN_SUBSCRIPTION=Login_to_get_your_token \
    wiregarden up --network my-net