安装带端口跳跃的hy2
安装后的信息如下:
hy2端口:9443
端口跳跃:40000-5000
连接密码:admin888
伪装域名:www.speedtest.cn
由于是自签证书,需开启不验证证书安全性
首先安装必须的服务
apt update && apt install -y curl wget unzip nftables && bash <(curl -fsSL https://get.hy2.sh/)获取我提供的伪装站点和一些配置
cd /etc/hysteria/ && wget https://blog.0112233.xyz/static/hy2.zip -O hy2.zip && unzip -o hy2.zip编辑nftables端口监听及转发规则
编辑 /etc/nftables.conf
#!/usr/sbin/nft -f
flush ruleset
define INGRESS_INTERFACE="eth0"
define PORT_RANGE=40000-50000
define HYSTERIA_SERVER_PORT=9443
table inet hysteria_porthopping {
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
iifname $INGRESS_INTERFACE udp dport $PORT_RANGE counter redirect to :$HYSTERIA_SERVER_PORT
}
}
然后启动hy2服务及重启nftables防火墙
systemctl enable --now hysteria-server.service && sudo systemctl restart nftables - 上一篇: 一键开启bbr,并验证是否成功
- 下一篇: Brutal Nginx安装