WireGuardServer

WireGuard搭建,全部保持默认设置,不做特殊修改

View project on GitHub

海外服务器

安装前运行

yum update -y && yum install -y gcc curl wget && curl -sSL https://raw.githubusercontent.com/HXHGTS/WireGuardServer/master/hosts > /etc/hosts && reboot

普通安装:

wget https://raw.githubusercontent.com/HXHGTS/WireGuardServer/master/WireGuard.c -O WireGuard.c && chmod +x WireGuard.c && gcc -o WireGuard WireGuard.c && chmod +x WireGuard && ./WireGuard

支持v4/v6双栈网络:

wget https://raw.githubusercontent.com/HXHGTS/WireGuardServer/master/WireGuard_ipv6.c -O WireGuard.c && chmod +x WireGuard.c && gcc -o WireGuard WireGuard.c && chmod +x WireGuard && ./WireGuard

支持FULLCONE:

wget https://raw.githubusercontent.com/HXHGTS/WireGuardServer/master/WireGuard_FullCone.c -O WireGuard.c && chmod +x WireGuard.c && gcc -o WireGuard WireGuard.c && chmod +x WireGuard && ./WireGuard

第一次点击安装后会自动升级系统内核并触发重启,重启后输入

./WireGuard

并选1继续安装

返回