发新话题
打印

Debian 10 Centos 8 安装wireguard kernel mod内核模块

Debian 10 Centos 8 安装wireguard kernel mod内核模块

一、Debian 10 安装wireguard kernel mod内核模块

# echo 'deb http://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d/buster-backports.list

# apt update

# apt-get install linux-headers-$(uname -r)
必须安装,否则出错:Module build for kernel 4.19.0-18-amd64 was skipped since the kernel headers for this kernel does not seem to be installed.

# apt search wireguard
Sorting... Done
Full Text Search... Done
wireguard/buster-backports,buster-backports,now 1.0.20210223-1~bpo10+1 all [installed]
  fast, modern, secure kernel VPN tunnel (metapackage)

wireguard-dkms/now 1.0.20210606-1 all [installed,local]
  fast, modern, secure kernel VPN tunnel (DKMS version)

wireguard-tools/now 1.0.20210914-1 amd64 [installed,local]
  fast, modern, secure kernel VPN tunnel (userland utilities)

# apt-get reinstall wireguard

# modprobe wireguard

# lsmod | grep wireguard
wireguard             208896  0
ip6_udp_tunnel         16384  2 l2tp_core,wireguard
udp_tunnel             16384  2 l2tp_core,wireguard


参考:
https://github.com/linuxserver/docker-wireguard/issues/109
https://askubuntu.com/questions/1174930/cant-load-wireguard-module

二、Centos 8 安装wireguard kernel mod内核模块
# yum install elrepo-release epel-release
# yum install kmod-wireguard wireguard-tools
# modprobe wireguard
# lsmod wireguard

[ 本帖最后由 linda 于 2022-5-19 10:58 编辑 ]

TOP

发新话题