How To Setup WireGuard on Ubuntu
Install WireGuard
-
Open a terminal and install WireGuard:
sudo apt update && sudo apt install wireguard
-
For GUI support (optional), install:
sudo apt install network-manager-wireguard
Access VPN Panel
-
Log in to the WorldVPN panel at https://www.worldvpn.net/client/login using your account credentials.
-
Navigate to the "WireGuard" section in the menu.
Create WireGuard Configuration
-
In the WireGuard section, click "Add WireGuard Config" or similar button to create a new configuration.
-
Follow the prompts to complete the configuration creation.
-
Once created, click "Download Config" to download the WireGuard configuration file (.conf).
Import Configuration to Ubuntu
-
Option 1 - Command Line (Recommended):
-
Transfer the downloaded .conf file to your Ubuntu machine (e.g., to your Downloads folder).
-
Copy the configuration file to the WireGuard directory:
sudo cp ~/Downloads/worldvpn.conf /etc/wireguard/
-
Set appropriate permissions:
sudo chmod 600 /etc/wireguard/worldvpn.conf
-
Option 2 - Network Manager GUI:
-
Click on the network icon in the top-right corner and select "Settings" or go to Settings > Network.
-
In the left sidebar, click on "VPN".
-
Click the "+" button to add a new VPN connection.
-
Select "Import from file" and choose the downloaded .conf file.
-
Click "Add" to import the configuration.
Connect to WorldVPN
-
Using Command Line: Start the WireGuard connection with:
sudo wg-quick up worldvpn
-
Using Network Manager GUI: Click on the network icon in the top-right corner, select your WireGuard connection, and click "Connect".
-
To enable automatic connection on boot (command line method):
sudo systemctl enable wg-quick@worldvpn
Verify Connection
-
Check the connection status with:
sudo wg show
-
You should see connection details including your peer endpoint and data transfer statistics.
-
To disconnect (command line):
sudo wg-quick down worldvpn