hailiang890610 / VPS-reality-hysteria2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

简介

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

功能

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

使用教程

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端口跳跃功能

端口跳跃争议很大,大部分开发者都觉得这个操作不够优雅,例如singbox和clashmeta就明确表示不会支持端口跳跃。对于Qos的作用其实也有限,所以本脚本不添加,但是可以手动添加端口跳跃,步骤如下:

点击展开/折叠

如果想要开启端口跳跃可根据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

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)

About

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

License:Apache License 2.0


Languages

Language:Shell 100.0%