Wireguard Installation
Estimated reading: 2 minutes
18 views
1. Installing WireGuard on Ubuntu/Debian
Ubuntu 20.04 or Later / Debian 10 or Later
-
- Update Package List: First, update your package list to ensure you have the latest versions of repositories: bash
sudo apt update
- Install WireGuard: Install WireGuard using the
apt
package manager:
sudo apt install wireguard wireguard-tools resolvconf - Verify the Installation: You can verify the installation by checking the WireGuard interface:
sudo wg
- Update Package List: First, update your package list to ensure you have the latest versions of repositories: bash
2. Installing WireGuard on CentOS/Red Hat 7/8
CentOS 7/8 / RHEL 7/8
-
- Install EPEL Repository (for CentOS/RHEL 7):
sudo yum install epel-release
- 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
- 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
- Verify Installation: Use the
wg
command to check if WireGuard is working:sudo wg
- Install EPEL Repository (for CentOS/RHEL 7):
3. Installing WireGuard on Debian 9/10
-
- Update Package List: Ensure your package list is updated:
sudo apt update
- Install WireGuard: Install WireGuard with
apt
:sudo apt install wireguard
- Configure and Start WireGuard: Set up your VPN configuration, then bring up the interface:
sudo wg-quick up wg0
- Verify: Check the status of your WireGuard interface:
sudo wg
- Update Package List: Ensure your package list is updated:
4. Installing WireGuard on Fedora
-
- Install WireGuard: Fedora includes WireGuard in the default repositories, so install it using
dnf
:sudo dnf install wireguard wireguard-tools
- Verify: Use the
wg
command to verify the tunnel:sudo wg
- Install WireGuard: Fedora includes WireGuard in the default repositories, so install it using
5. Installing WireGuard on Arch Linux
-
- Install WireGuard: Arch Linux includes WireGuard in its official repositories. Install it with
pacman
:sudo pacman -S wireguard-tools
- Verify: Check the status of the WireGuard interface:
sudo wg
- Install WireGuard: Arch Linux includes WireGuard in its official repositories. Install it with