2018-09-23
WireGuard安装笔记
栏目:IT
在Google Cloud和Vultr的Debian系统测试通过,直接无脑执行下列代码 apt-get install libmnl-dev linux-headers-$(uname -r) build-essential make git git clone https://git.zx2c4.com/WireGuard cd WireGuard/src/ make make install ip link add dev wg0 type wireguard umask 077 wg genkey > private wg pubkey < private > public cat public wg set wg0 listen-port 51920 private-key ~/private peer <PEER_PUBLIC_KEY> allowed-ips 10.0.0.0/24 endpoint <OTHER_SERVER_IP>:51920 这里需要把<PEER_PUBLIC_KEY>、<OTHER_SERVER_IP>替换成对应的内容 ip link […]

