ubuntu20.04をWireGuardサーバに仕立ててみる.
WireGuardのサイトから
https://www.wireguard.com/install/

とある... kernel moduleがout of date? って大丈夫?と思いつつubuntu20.04に入れてみる LTSだから大丈夫かな
root@ubuntu:~# grep VERSION= /etc/os-release
VERSION="20.04.5 LTS (Focal Fossa)"
root@ubuntu:~# apt update
root@ubuntu:~# find /lib/modules -name wireguard.ko
/lib/modules/5.15.0-46-generic/kernel/drivers/net/wireguard/wireguard.ko
root@ubuntu:~# apt install wireguard
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
wireguard-tools
Suggested packages:
openresolv | resolvconf
The following NEW packages will be installed:
wireguard wireguard-tools <---- wireguard と wireguard-tools がインストールされる
0 upgraded, 2 newly installed, 0 to remove and 161 not upgraded.
Need to get 86.6 kB of archives.
After this operation, 344 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
root@ubuntu:~#
dkms版とかを思いましたが、ubuntuのkernelには既に「wireguard.ko」が入っていて、upgradeしても提供されるkernelにも「wireguard.ko」が初めから用意されている様子