Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 only 环境下,hysteria2 端口跳跃开启后无法连接 #1034

Open
chuangbo opened this issue May 17, 2024 · 1 comment
Open

IPv6 only 环境下,hysteria2 端口跳跃开启后无法连接 #1034

chuangbo opened this issue May 17, 2024 · 1 comment

Comments

@chuangbo
Copy link

首先感谢大佬的脚本。

这个问题,我自己也尝试分析了一下,对比 hysteria2 文档,发现开启端口跳跃需要添加 iptablesip6tables,但 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
@breeze303
Copy link

建议你看看这个apernet/hysteria#629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants