搭建基于WireGuard的VPN

系统为debian bookworm 1方便起见切换到root用户 sudo su 2.安装WireGuard apt update && apt install wireguard wireguard-tools openresolv -y 3.服务器需要开启ipv4转发 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf && sysctl -p /etc/sysctl.conf 4.生成私钥与公钥,默认的配置文件夹储存在/etc/wireguard目录 cd /etc/wireguard...