Code Monkey home page Code Monkey logo

sing-box-reality-hysteria2's Introduction

  • 强烈建议开启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)

sing-box-reality-hysteria2's People

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.