matomo

Best deal of the year - get 77% off our 2-year plan for Black Friday! Get Deal

Install WireGuard on Ubuntu

This guide is also available in Svenska, Deutsch and Norsk

Last updated: January 10, 2024

1. Install WireGuard

If you have Ubuntu ≥ 19.10, execute:

sudo apt install wireguard openresolv

If you have Ubuntu ≤ 19.04, execute:

sudo add-apt-repository ppa:wireguard/wireguard
sudo apt-get update
sudo apt-get install wireguard openresolv

2. Generate the config(s) you want

If you're asked if you want to reboot the computer, do so.

Why OVPN?

OVPN is a court-proven VPN service that offers secure internet without country or streaming restrictions, and where ads no longer track your every move.

Learn more

3. Import configuration

In the terminal, execute:

4. Connect to OVPN

To connect to OVPN, type the following into the terminal:

wg-quick up {{ props.config }}

To disconnect from OVPN, type the following into the terminal:

wg-quick down {{ props.config }}

5. Autostart on boot (Optional)

sudo systemctl enable wg-quick@$config_name.service
sudo systemctl daemon-reload

6. Finished

You should now be connected to OVPN and be able to browse the internet safely. To make sure everything was set up correctly, please check the dashboard to verify that you are connected.

Troubleshooting

In case you get connected to OVPN in the WireGuard application, but don't have any internet connectivity, please read the troubleshooting article for WireGuard.

If your configuration files don't get imported, read our article about adding your private key manually in the configuration files.