WireGuard® configuration guide for all major platforms

WireGuard® is the latest VPN protocol with state-of-the-art security and greatly optimized performance. This protocol was originally released for the Linux kernel, but now it is cross-platform and can be deployed on any platform. 

More information about WireGuard® features you can find in the article What is WireGuard® protocol?

Figure out how to set up and configure a WireGuard® VPN connection on your Linux device.

Note: Ubuntu 19.10 was taken as an example.

1. First of all, you need to create the WireGuard® configuration file in your User Office. To do this, follow the instructions described in this manual.

2. Create the WireGuard® repository:

sudo add-apt-repository ppa:wireguard/wireguard

3. Install the WireGuard® packages:

sudo apt install wireguard

Install the resolv.conf package:

sudo apt install resolvconf

4. Go to the WireGuard® directory and create the wg0.conf file:

cd /etc/wireguard

5. Copy the WireGuard® configurations, you received in your User Office, and paste it to the wg0.conf file using your text editor:

nano wg0.conf

6. Turn on your WireGuard® connection and enjoy fast and reliable web surfing:

systemctl start [email protected]

7. If you want to keep your WireGuard® connection ON at the system startup, print the following command:

systemctl enable [email protected]

8. Turn off the  WireGuard® connection using the command:

systemctl stop [email protected]

9. If you want to turn the autostart off use the command:

systemctl disable [email protected]

That’s it! Hope our guide helps you to configure a WireGuard® VPN connection on your Linux device. 

If you need to configure other devices, check out our Manuals page or contact our customer support via [email protected].

“WireGuard” is a registered trademark of Jason A. Donenfeld.