Skip to content

Instantly share code, notes, and snippets.

@jimtalksdata
Created December 15, 2018 17:03
Show Gist options
  • Save jimtalksdata/dbdb28740c2d567119c7be811d62b6d9 to your computer and use it in GitHub Desktop.
Save jimtalksdata/dbdb28740c2d567119c7be811d62b6d9 to your computer and use it in GitHub Desktop.
Ubuntu / wireguard setup
# Add the WireGuard repository:
sudo add-apt-repository ppa:wireguard/wireguard
# Update the list of available packages (not necessary on Bionic):
sudo apt update
# Install the tools and kernel module:
sudo apt install wireguard
# Install the config file to the WireGuard configuration directory on your
# Bionic or Xenial client:
sudo install -o root -g root -m 600 <username>.conf /etc/wireguard/wg0.conf
# Start the WireGuard VPN:
sudo systemctl start wg-quick@wg0
# Check that it started properly:
sudo systemctl status wg-quick@wg0
# Verify the connection to the Algo VPN:
sudo wg
# See that your client is using the IP address of your Algo VPN:
curl ipv4.icanhazip.com
# Optionally configure the connection to come up at boot time:
sudo systemctl enable wg-quick@wg0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment