树莓派需要编译安装 WireGuard

安装内核头文件

$ sudo apt install raspberrypi-kernel-headers

安装依赖库和编译所需工具

$ sudo apt install libmnl-dev build-essential git

编译安装 WireGuard

$ git clone https://git.zx2c4.com/WireGuard
$ cd WireGuard/
$ cd src/
$ make
$ sudo make install

Reference