项目地址:
https://github.com/HyNetwork/hysteria/releases
服务端配置
生成自签证书
1 2
| openssl ecparam -genkey -name prime256v1 -out ca.key openssl req -new -x509 -days 36500 -key ca.key -out ca.crt -subj "/CN=bing.com"
|
配置server端,UDP协议
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| cat config.json listen: :9527 tls: cert: /etc/hysteria/ca.crt key: /etc/hysteria/ca.key
auth: type: password password: 123456
masquerade: type: proxy proxy: url: https://bing.com rewriteHost: true
|
启动server端,需要开放对应的UDP端口
配置client端
1 2 3 4 5 6 7 8 9 10 11 12
| cat config.json server: server_ip:9527 auth: 123456
tls: insecure: true
socks5: listen: 127.0.0.1:1080
http: listen: 127.0.0.1:8080
|
启动client端