安装hysteria:
wget https://github.com/apernet/hysteria/releases/download/app%2Fv2.0.2/hysteria-android-amd64
设置执行权限:
chmod 755 hysteria-linux-amd64
自签证书:
生成私钥:openssl ecparam -genkey -name prime256v1 -out ca.key
生成证书:openssl req -new -x509 -days 36500 -key ca.key -out ca.crt -subj "/CN=bing.com"
hysteria服务端配置:
{
"listen": ":9527",
"cert": "/root/hy/ca.crt",
"key": "/root/hy/ca.key",
"obfs": "password"
}
关闭防火墙:
ufw disable
服务端后台运行:
nohup ./hysteria-linux-amd64 server > hysteria.log 2>&1 &
评论 (0)