记得开启IPv4的转发
echo “net.ipv4.ip_forward = 1” >> /etc/sysctl.conf
sysctl -p
wget https://raw.githubusercontent.com/yobabyshark/wireguard/master/wireguard_install.sh
/usr/bin/wg-quick
ip link set wg0 down
ip link del wg0
wg-quick up wg0
$ umask 077
$ wg genkey > privatekey
$ wg pubkey < privatekey > publickey
$ wg genkey | tee privatekey | wg pubkey > publickey
wireguard 官方快速搭建中文教程教程
https://www.jianshu.com/p/a87773912db3
WireGuard Tunsafe IOS客户端下载
https://www.jianshu.com/p/eb5221d3256a
WireGuard 搭建
https://www.jianshu.com/p/b6794a443913
https://www.wireguard.com/install/
CentOS 安装最新版的Wireguard ******
ip(iproute)
ip link set eth0 down
ip link set eth0 up
ip addr add 192.168.1.1/24 dev eth0
ip route show
ip route add default via 192.168.1.254
ip -s link
ip neigh
ip monitor all
ip route get 123.125.114.144
ip addr show eth0
ip addr del 192.168.1.1 dev eth0