Ai Chat

How To Setup WireGuard on Ubuntu

Install WireGuard

  1. Open a terminal and install WireGuard: sudo apt update && sudo apt install wireguard
  2. For GUI support (optional), install: sudo apt install network-manager-wireguard

Access VPN Panel

  1. Log in to the WorldVPN panel at https://www.worldvpn.net/client/login using your account credentials.
  2. Navigate to the "WireGuard" section in the menu.

Create WireGuard Configuration

  1. In the WireGuard section, click "Add WireGuard Config" or similar button to create a new configuration.
  2. Follow the prompts to complete the configuration creation.
  3. Once created, click "Download Config" to download the WireGuard configuration file (.conf).

Import Configuration to Ubuntu

  1. Option 1 - Command Line (Recommended):
  2. Transfer the downloaded .conf file to your Ubuntu machine (e.g., to your Downloads folder).
  3. Copy the configuration file to the WireGuard directory: sudo cp ~/Downloads/worldvpn.conf /etc/wireguard/
  4. Set appropriate permissions: sudo chmod 600 /etc/wireguard/worldvpn.conf
  1. Option 2 - Network Manager GUI:
  2. Click on the network icon in the top-right corner and select "Settings" or go to Settings > Network.
  3. In the left sidebar, click on "VPN".
  4. Click the "+" button to add a new VPN connection.
  5. Select "Import from file" and choose the downloaded .conf file.
  6. Click "Add" to import the configuration.

Connect to WorldVPN

  1. Using Command Line: Start the WireGuard connection with: sudo wg-quick up worldvpn
  2. Using Network Manager GUI: Click on the network icon in the top-right corner, select your WireGuard connection, and click "Connect".
  3. To enable automatic connection on boot (command line method): sudo systemctl enable wg-quick@worldvpn

Verify Connection

  1. Check the connection status with: sudo wg show
  2. You should see connection details including your peer endpoint and data transfer statistics.
  3. To disconnect (command line): sudo wg-quick down worldvpn