Wireguard su Linux
Wireguard è il software utilizzato dal servizio AccessoFacile.it. Qui trovi i comandi per l’installazione di Wireguard su PC e Server con sistema operativo Linux.
Client Wireguard Linux
Ubuntu
- Module (Outdated): Version 1.0.20210606
- Tools: Version 1.0.20210914
sudo apt install wireguard
Debian
- Module: Version 1.0.20220627
- Tools: Version 1.0.20210914
apt install wireguard
Users with Debian releases older than Bullseye should enable backports.
Fedora
- Tools: Version 1.0.20210914
sudo dnf install wireguard-tools
Mageia
- Tools: Version 1.0.20210914
sudo urpmi wireguard-tools
Arch Linux
- Module: Version 1.0.20220627
- Tools: Version 1.0.20210914
sudo pacman -S wireguard-tools
Users of kernels < 5.6 may also choose wireguard-lts or wireguard-dkms+linux-headers, depending on which kernel is used.
OpenSUSE/SLE
- Tools: Version 1.0.20210914
sudo zypper install wireguard-tools
Slackware
- Tools: Version 1.0.20210914
sudo slackpkg install wireguard-tools
Alpine Linux
- Tools: Version 1.0.20210914
apk add -U wireguard-tools
Gentoo
- Module: Version 1.0.20220627
- Tools: Version 1.0.20210914
emerge wireguard-tools
The wireguard-modules ebuild also exists for compatibility with older kernels.
Exherbo
- Module (Outdated): Version unknown
- Tools (Outdated): Version unknown
cave resolve -x wireguard
NixOS
- Module: Version 1.0.20220627
- Tools: Version 1.0.20210914
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
environment.systemPackages = [ pkgs.wireguard pkgs.wireguard-tools ];
Nix on Darwin
- Userspace Go: Version v0.0.20230223
- Tools: Version 1.0.20210914
nix-env -iA nixpkgs.wireguard-tools
OpenWRT
- Tools: Version 1.0.20210914
opkg install wireguard
Oracle Linux 8
- UEK6 & Tools (Outdated): Version 1.0.20200827
dnf install oraclelinux-developer-release-el8
dnf config-manager --disable ol8_developer
dnf config-manager --enable ol8_developer_UEKR6
dnf config-manager --save --setopt=ol8_developer_UEKR6.includepkgs='wireguard-tools*'
dnf install wireguard-tools
Red Hat Enterprise Linux 8
- Module-kmod (Outdated): Version unknown
- Module-dkms (Outdated): Version unknown
- Tools: Version 1.0.20210914
Method 1:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
sudo yum install kmod-wireguard wireguard-tools
Method 2:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
sudo yum copr enable jdoss/wireguard
sudo yum install wireguard-dkms wireguard-tools
CentOS 8
- Module-plus (Outdated): Version 1.0.20210606
- Module-kmod (Outdated): Version unknown
- Module-dkms (Outdated): Version unknown
- Tools: Version 1.0.20210914
Method 1:
sudo yum install yum-utils epel-release
sudo yum-config-manager --setopt=centosplus.includepkgs="kernel-plus, kernel-plus-*" --setopt=centosplus.enabled=1 --save
sudo sed -e 's/^DEFAULTKERNEL=kernel-core$/DEFAULTKERNEL=kernel-plus-core/' -i /etc/sysconfig/kernel
sudo yum install kernel-plus wireguard-tools
sudo reboot
Method 2:
sudo yum install elrepo-release epel-release
sudo yum install yum-plugin-elrepo
sudo yum install kmod-wireguard wireguard-tools
Method 3:
sudo yum install epel-release
sudo yum config-manager --set-enabled PowerTools
sudo yum copr enable jdoss/wireguard
sudo yum install wireguard-dkms wireguard-tools
Oracle Linux 7
- UEK6 & Tools (Outdated): Version 1.0.20200827
yum install oraclelinux-developer-release-el7
yum-config-manager --disable ol7_developer
yum-config-manager --enable ol7_developer_UEKR6
yum-config-manager --save --setopt=ol7_developer_UEKR6.includepkgs='wireguard-tools*'
yum install wireguard-tools
Red Hat Enterprise Linux 7
- Module-kmod (Outdated): Version unknown
- Module-dkms (Outdated): Version unknown
- Tools: Version 1.0.20210914
Method 1:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
sudo yum install kmod-wireguard wireguard-tools
Method 2:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo curl -o /etc/yum.repos.d/jdoss-wireguard-epel-7.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
sudo yum install wireguard-dkms wireguard-tools
CentOS 7
- Module-plus: Version 1.0.20220627
- Module-kmod (Outdated): Version unknown
- Module-dkms (Outdated): Version unknown
- Tools: Version 1.0.20210914
Method 1:
sudo yum install yum-utils epel-release
sudo yum-config-manager --setopt=centosplus.includepkgs=kernel-plus --enablerepo=centosplus --save
sudo sed -e 's/^DEFAULTKERNEL=kernel$/DEFAULTKERNEL=kernel-plus/' -i /etc/sysconfig/kernel
sudo yum install kernel-plus wireguard-tools
sudo reboot
Method 2:
sudo yum install epel-release elrepo-release
sudo yum install yum-plugin-elrepo
sudo yum install kmod-wireguard wireguard-tools
Method 3:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo curl -o /etc/yum.repos.d/jdoss-wireguard-epel-7.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
sudo yum install wireguard-dkms wireguard-tools
FreeBSD
- Kernel Module (Outdated): Version unknown
- Userspace Go: Version v0.0.20230223
- Tools: Version 1.0.20210914
pkg install wireguard
OpenBSD
- Tools: Version 1.0.20210914
pkg_add wireguard-tools
Termux
- Tools: Version 1.0.20210914
pkg install wireguard-tools
Void Linux
- Module: Version 1.0.20220627
- Tools: Version 1.0.20210914
xbps-install -S wireguard-tools wireguard-dkms
Adélie Linux
- Module (Outdated): Version unknown
- Tools (Outdated): Version unknown
apk add wireguard-tools wireguard-module
Source Mage
- Tools: Version 1.0.20210914
cast wireguard-tools
Buildroot
- Module: Version 1.0.20220627
- Tools: Version 1.0.20210914
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
BR2_PACKAGE_WIREGUARD_TOOLS=y
EdgeOS
sudo dpkg -i wireguard-{type}-{version}.deb
First download the correct prebuilt file from the release page, and then install it with dpkg as above.
AstLinux
BR2_PACKAGE_WIREGUARD_TOOLS=y
BR2_PACKAGE_WIREGUARD=y
macOS Homebrew and MacPorts
Homebrew
- Userspace Go (Outdated): Version unknown
- Tools (Outdated): Version unknown
brew install wireguard-tools
MacPorts
- Userspace Go: Version v0.0.20230223
- Tools: Version 1.0.20210914
port install wireguard-tools
For more information, refer to the cross-platform documentation.
Last updated on