/sing-box-reality-hysteria2

基于singbox内核的hy2 reality vmess ws一键脚本

Primary LanguageShellApache License 2.0Apache-2.0

  • 强烈建议开启bbr加速,可大幅加快节点reality和vmess节点的速度
  • 安装完成后终端输入 mianyang 可再次调用本脚本

简介

  • Reality Hysteria2 (vmess ws)一键安装脚本

功能

  • 无脑回车一键安装或者自定义安装
  • 完全无需域名,使用自签证书部署hy2,(使用argo隧道支持vmess ws优选ip(理论上比普通优选ip更快))
  • 支持修改reality端口号和域名,hysteria2端口号
  • 无脑生成sing-box,clash-meta,v2rayN,nekoray等通用链接格式

使用教程

reality和hysteria2 vmess ws三合一脚本

bash <(curl -fsSL https://github.com/vveg26/sing-box-reality-hysteria2/raw/main/beta.sh)

reality hysteria2二合一脚本

bash <(curl -fsSL https://github.com/vveg26/sing-box-reality-hysteria2/raw/main/install.sh)

hysteria2端口跳跃功能

因为只有官方客户端和nekobox支持端口跳跃,meta和sing-box并不会支持,所以脚本不添加,如果想要开启端口跳跃可根据ipv4或v6执行:

# IPv4
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:50000 -j DNAT --to-destination :8443
# IPv6
ip6tables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:50000 -j DNAT --to-destination :8443

上述命令的作用就是做了一个简单的流量转发,通过监听20000到50000端口的udp流量,并将它们转发到hysteria2的8443端口。

关闭hy2端口跳跃

# IPv4
iptables -t nat -D PREROUTING -i eth0 -p udp --dport 20000:50000 -j DNAT --to-destination :8443
# IPv6
ip6tables -t nat -D PREROUTING -i eth0 -p udp --dport 20000:50000 -j DNAT --to-destination :8443
项目
程序 /root/sbox/sing-box
服务端配置 /root/sbox/sbconfig_server.json
重启 systemctl restart sing-box
状态 systemctl status sing-box
查看日志 journalctl -u sing-box -o cat -e
实时日志 journalctl -u sing-box -o cat -f

warp解锁v4 v6等操作自行使用warp-go脚本 具体操作就不说了

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh

Credit

尝鲜区

tcp-brutal reality(双端sing-box 1.7.0以上可用)

文档

bash <(curl -fsSL https://github.com/vveg26/sing-box-reality-hysteria2/raw/main/tcp-brutal-reality.sh)

grpc reality

bash <(curl -fsSL https://github.com/vveg26/sing-box-reality-hysteria2/raw/main/grpc-reality.sh)