Open
Description
首先感谢大佬的脚本。
这个问题,我自己也尝试分析了一下,对比 hysteria2 文档,发现开启端口跳跃需要添加 iptables
和 ip6tables
,但 v2ray-agent
只添加了第一个,所以在 IPv6 环境无法端口跳跃。测试加上 ip6tables
后问题解决。
# 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.问题描述
- 尽可能的将复现步骤描述清楚
1. 域名只设置了 ipv6 的 AAAA 记录,没有添加 A 记录
2. 打开脚本的 hy2 端口跳跃功能
3. 测试使用客户端连接
2.安装失败的log或者截图
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"}
3.系统版本
Ubuntu 22.04.4 LTS
4.脚本版本
v3.2.52
5.服务端安装的内核、协议、安装方式
- 核心(xray-core、sing-box)
sing-box
- 安装方式(1.全部安装、2.任意组合安装)
2
- 协议(VLESS+TLS_Vision+TCP)
请填写
6.客户端版本
hysteria2
Metadata
Metadata
Assignees
Labels
No labels