Open chuangbo opened 1 month ago
首先感谢大佬的脚本。
这个问题,我自己也尝试分析了一下,对比 hysteria2 文档,发现开启端口跳跃需要添加 iptables 和 ip6tables,但 v2ray-agent 只添加了第一个,所以在 IPv6 环境无法端口跳跃。测试加上 ip6tables 后问题解决。
iptables
ip6tables
v2ray-agent
# hysteria2 端口跳跃:https://v2.hysteria.network/zh/docs/advanced/Port-Hopping/ # IPv4 iptables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:50000 -j DNAT --to-destination :443 # IPv6 ip6tables -t nat -A PREROUTING -i eth0 -p udp --dport 20000:50000 -j DNAT --to-destination :443
1. 域名只设置了 ipv6 的 AAAA 记录,没有添加 A 记录 2. 打开脚本的 hy2 端口跳跃功能 3. 测试使用客户端连接
2024-05-17T13:09:44+08:00 INFO client mode 2024-05-17T13:09:49+08:00 FATAL failed to initialize client {"error": "connect error: timeout: no recent network activity"}
Ubuntu 22.04.4 LTS
v3.2.52
sing-box
2
请填写
hysteria2
首先感谢大佬的脚本。
这个问题,我自己也尝试分析了一下,对比 hysteria2 文档,发现开启端口跳跃需要添加
iptables
和ip6tables
,但v2ray-agent
只添加了第一个,所以在 IPv6 环境无法端口跳跃。测试加上ip6tables
后问题解决。1.问题描述
2.安装失败的log或者截图
3.系统版本
4.脚本版本
5.服务端安装的内核、协议、安装方式
6.客户端版本