---
title: "VPN Setup - Linux"
description: "Configure WireGuard VPN on Linux"
url: https://chathelp.wrld.tech/en/articles/42-vpn-setup-linux
collection: "VPN Setup"
updated: 2026-11-06
language: en
---

# VPN Setup - Linux

Configure WireGuard VPN on Linux

## Prerequisites

-   Linux distribution with kernel 5.6+ (or wireguard-dkms for older kernels)
    
-   WireGuard configuration file (provided by WRLD)
    
-   Root/sudo access
    

## Installation

**Ubuntu/Debian**

```bash
sudo apt update
sudo apt install wireguard
```

**Fedora**

```bash
sudo dnf install wireguard-tools
```

**Arch Linux**

```bash
sudo pacman -S wireguard-tools
```

**CentOS/RHEL**

```bash
sudo yum install epel-release elrepo-release
sudo yum install kmod-wireguard wireguard-tools
```

## Configuration

1.  Place Configuration File
    
    Copy your `.conf` file to the WireGuard directory:
    
    ```bash
    sudo cp /path/to/wrld.conf /etc/wireguard/wrld.conf
    sudo chmod 600 /etc/wireguard/wrld.conf
    ```
    
2.  Start the VPN
    
    ```bash
    sudo wg-quick up wrld
    ```
    
    You should see output indicating the interface is configured.
    
3.  Verify Connection
    
    ```bash
    sudo wg show
    ```
    
    This displays the active tunnel, peer information, and transfer statistics.
    

## Disconnect

```bash
sudo wg-quick down wrld
```

## Auto-Start on Boot

To start the VPN automatically:

```bash
sudo systemctl enable wg-quick@wrld
sudo systemctl start wg-quick@wrld
```

## Troubleshooting

RTNETLINK answers: Operation not permitted

Ensure you're running the command with `sudo` and that the WireGuard kernel module is loaded:

```bash
sudo modprobe wireguard
```

resolvconf: command not found

Install the resolvconf package:

```bash
# Ubuntu/Debian
sudo apt install resolvconf

# Or use systemd-resolved
sudo apt install systemd-resolved
```

Handshake not completing

-   Check firewall rules (UDP port 51820 must be allowed outbound)
    
-   Verify your configuration file is correct
    
-   Ensure your IP is whitelisted on the server
    

## Need Help?

Contact [helpdesk@wrld.tech](mailto:helpdesk@wrld.tech).

## Related

- [VPN Setup - Windows](https://chathelp.wrld.tech/en/articles/38-vpn-setup-windows.md)
- [VPN Setup - macOS](https://chathelp.wrld.tech/en/articles/39-vpn-setup-macos.md)
- [VPN Setup - iOS](https://chathelp.wrld.tech/en/articles/40-vpn-setup-ios.md)
- [VPN Setup - Android](https://chathelp.wrld.tech/en/articles/41-vpn-setup-android.md)
