免费云服务器,搭建高速节点
声明:如果搭建节点没有成功,说明方式已经失效,大家可以自己寻找其他方式!不一定我的方式就适合大家!
fibo cloud云服务器申请地址:https://fibo.cloud/
感谢不良林博主提供的代码!
一键安装Hysteria 2
bash <(curl -fsSL https://get.hy2.sh/)
设置自启动Hysteria 2
systemctl enable hysteria-server.service
生成自签证书
openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name prime256v1) -keyout /etc/hysteria/server.key -out /etc/hysteria/server.crt -subj "/CN=bing.com" -days 36500 && sudo chown hysteria /etc/hysteria/server.key && sudo chown hysteria /etc/hysteria/server.crt
服务器配置代码:
cat << EOF > /etc/hysteria/config.yaml listen: :443 tls: cert: /etc/hysteria/server.crt key: /etc/hysteria/server.key auth: type: password password: 123456 masquerade: type: proxy proxy: url: https://bing.com rewriteHost: true EOF
启动Hysteria 2
systemctl start hysteria-server.service
查看启动状态
systemctl status hysteria-server.service
关闭防火墙
ufw disable
重启Hysteria 2
systemctl restart hysteria-server.service
停止Hysteria 2
systemctl stop hysteria-server.service
客户端配置代码:
server: ip:443 auth: 123456 bandwidth: up: 20 mbps down: 100 mbps tls: sni: bing.com insecure: true socks5: listen: 127.0.0.1:1080 http: listen: 127.0.0.1:8080
v2下载地址:https://github.com/2dust/v2rayN/releases/tag/6.23
Hysteria下载地址:https://github.com/apernet/hysteria/releases