The following instructions outline the setup process for WireGuard connection on Ubuntu 18.04:


1. Open Terminal and execute there following commands:


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


2.  Generate your private and public keys with the following commands:


wg genkey | tee privatekey | wg pubkey > publickey


3.  Execute in terminal cat publickey. You should see you public key, as on the screenshot below. Select and copy it to the clipboard.



4.  Open this link and go to tab WireGuard. Press "Add new key"



5.  Paste your public key,  and description. Leave PSK filed blank for now. You can add up to 5 keys at this time. Click on "Add Keys"


6.  Choose your country and click on "Download configuration files".



7.  Open your Downloads folder, find and unpack your new WireGuard configs.



8. Open your WireGuard config in the folder. Enter your private key, ip address and delete line with preshared key - same as on the screenshot below:



After that your config should look like this:



9. Launch WireGuard interface from command line with  following command:


sudo wg-quick up /<full path to your config>/<config name>.conf

It should like close to the content on screenshot below:



10. After that you should be connected to your desired location. If you want to disconnect - you need to input the following command:


sudo wg-quick down /<full path to your config>/<config name>.conf

It should like close to the content on screenshot below: 


And know you will be disconnected from server.



If you have any questions, or experience any issues while installing and setting up your linux device to connect to the VPNTunnel VPN servers - please contact our Support Team anytime.