hysteria

Hysteria 协议!歇斯底里加速协议,是否能够拯救线路拉胯的 VPS!降低延迟、提升线路质量!

官方介绍:

Hysteria 是一个功能丰富的,专为恶劣网络环境进行优化的网络工具(双边加速),比如卫星网络、拥挤的公共 Wi-Fi、在中国连接国外服务器等。 基于修改版的 QUIC 协议。目前有以下模式:(仍在增加中)

1、SOCKS5 代理 (TCP & UDP)
2、HTTP/HTTPS 代理
3、TCP/UDP 转发
4、TCP/UDP TPROXY 透明代理 (Linux)
5、TUN (Windows 下为 TAP)

项目地址:点击访问

安装 Hysteria

Linux:

安装hysteria:https://github.com/HyNetwork/hysteria
设置执行权限:chmod 755 hysteria-linux-amd64

自签证书:
生成私钥:

1
openssl ecparam -genkey -name prime256v1 -out ca.key

​ 生成证书:

1
openssl req -new -x509 -days 36500 -key ca.key -out ca.crt  -subj "/CN=bing.com"

hysteria服务端配置:

1
2
3
4
5
6
{
"listen": ":9527",
"cert": "/root/hy/ca.crt",
"key": "/root/hy/ca.key",
"obfs": "password"
}

关闭防火墙:

1
2
3
systemctl stop firewalld

service iptables stop

后台运行:

1
nohup ./hysteria-linux-amd64 server >hysteria.log 2>&1 &

windows

Windows:

服务端后台运行:(youtube无法使用尖括号,请看视频内的命令)

hysteria客户端配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"server": "ip:port",
"obfs": "password",
"up_mbps": 20,
"down_mbps": 100,
"insecure": true,
"socks5": {
"listen": "127.0.0.1:1080"
},
"http": {
"listen": "127.0.0.1:1081"
}
}

运行hysteria客户端:

1
hysteria-tun-windows-6.0-amd64.exe client

client