PPTP模式:
wget https://raw.githubusercontent.com/userrory/centos7-pptp/master/CentOS7-pptp-host1plus.sh
chmod +x ./CentOS7-pptp-host1plus.sh
./CentOS7-pptp-host1plus.sh -u zhangzheng -p zhang@136
L2TP(IPsec VPN)模式:
首先,使用全新安装的 Ubuntu、Debian 或 CentOS 准备您的 Linux 服务器*。
使用此单线设置 IPsec VPN 服务器:
1,yum install wget 一般在centos可能用到,没有直接下一步
2,wget https://git.io/vpnsetup -qO vpn.sh && sudo sh vpn.sh
###可能会用到##
1.删除自带的localtime
rm -rf /etc/localtime
2.创建软链接到localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
v2ray:
bash <(curl -s -L https://git.io/v2ray.sh)
如果提示 curl: command not found ,那是因为你的 VPS 没装 Curl
ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
centos 系统安装 Curl 方法: yum update -y && yum install curl -y
安装好 curl 之后就能安装脚本了
开启
BBR加速
cd /usr/src && wget -N –no-check-certificate “https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh” && chmod +x tcp.sh && ./tcp.sh