Wireguard Installation
Estimated reading: 2 minutes
41 views
1. Installing WireGuard on Ubuntu/Debian
- 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
sudo apt update
sudo apt install wireguard wireguard-tools resolvconf
sudo wg
2. Installing WireGuard on CentOS/Red Hat 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
sudo yum install epel-release
sudo yum install -y wireguard-tools
sudo dnf install wireguard wireguard-tools
sudo wg
3. 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
sudo dnf install wireguard wireguard-tools
sudo wg
4. 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
sudo pacman -S wireguard-tools
sudo wg