jhtone
jhtone
发布于 2024-09-02 / 27 阅读
3
0

alpine系统,安装hysteria2

在alpine中安装hysteria2

wget -O hy2.sh https://raw.githubusercontent.com/zrlhk/alpine-hysteria2/main/hy2.sh  && sh hy2.sh

重复执行,会覆盖密码。

说明:

配置文件:/etc/hysteria/config.yaml

使用自签名证书,默认端口40443,安全tls,SNI为: bing.com

随系统自启动

看状态:

service hysteria status

重启:

service hysteria restart

开启端口跳跃

apk add iptables
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:50000 -j REDIRECT --to-ports 23456
ip6tables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:50000 -j REDIRECT --to-ports 23456


评论