Did You Know?

Advanced visual search system powered by Ajax

Wireguard Installation

Estimated reading: 2 minutes 18 views

1. Installing WireGuard on Ubuntu/Debian

Ubuntu 20.04 or Later / Debian 10 or Later

    1. Update Package List: First, update your package list to ensure you have the latest versions of repositories: bash
      sudo apt update
    2. Install WireGuard: Install WireGuard using the apt package manager:
      sudo apt install wireguard wireguard-tools resolvconf
    3. Verify the Installation: You can verify the installation by checking the WireGuard interface:
      sudo wg


2. Installing WireGuard on CentOS/Red Hat 7/8

CentOS 7/8 / RHEL 7/8

    1. Install EPEL Repository (for CentOS/RHEL 7):
      sudo yum install epel-release
    2. Install WireGuard: For CentOS 7 and Red Hat 7, WireGuard is not included in the default repositories. You need to install it via the EPEL repository or WireGuard’s official repo. First, install the WireGuard dependencies:
      sudo yum install -y wireguard-tools
    3. Install WireGuard on CentOS/RHEL 8: CentOS/RHEL 8 supports WireGuard directly via the AppStream repository. Install WireGuard using
      sudo dnf install wireguard wireguard-tools
    4. Verify Installation: Use the wg command to check if WireGuard is working:
      sudo wg


3. Installing WireGuard on Debian 9/10

    1. Update Package List: Ensure your package list is updated:
      sudo apt update
    2. Install WireGuard: Install WireGuard with apt:
      sudo apt install wireguard
    3. Configure and Start WireGuard: Set up your VPN configuration, then bring up the interface:
      sudo wg-quick up wg0
    4. Verify: Check the status of your WireGuard interface:
      sudo wg

4. Installing WireGuard on Fedora

    1. Install WireGuard: Fedora includes WireGuard in the default repositories, so install it using dnf:
      sudo dnf install wireguard wireguard-tools
    2. Verify: Use the wg command to verify the tunnel:
      sudo wg


5. Installing WireGuard on Arch Linux

    1. Install WireGuard: Arch Linux includes WireGuard in its official repositories. Install it with pacman:
      sudo pacman -S wireguard-tools
    2. Verify: Check the status of the WireGuard interface:
      sudo wg

Leave a Comment

Share this Doc

Wireguard Installation

Or copy link

CONTENTS