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

[Feature request]: 建议在 tun 的配置下添加 "inet6_address": "fc00::/18" #3913

Closed
1 task done
yang05051 opened this issue May 27, 2023 · 8 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@yang05051
Copy link

yang05051 commented May 27, 2023

相关问题

现有的 tun 配置无法解析纯 ipv6 网站,因为缺少 "inet6_address": "fc00::/18" 这个配置

描述你希望的解决方案

在 tun 的配置下添加 "inet6_address": "fc00::/18",这样在 tun 模式下就可以解析纯 ipv6 网站了。完整的 tun 配置如下:

{
      "type": "tun",
      "tag": "tun-in",
      "interface_name": "singbox_tun",
      "inet4_address": "172.19.0.1/30",
      "inet6_address": "fc00::/18",   //添加这个
      "mtu": 9000,
      "auto_route": true,
      "strict_route": true,
      "stack": "gvisor",
      "sniff": true
}

描述你所考虑的替代方案

我确认已查询历史issues

@yang05051 yang05051 added the enhancement New feature or request label May 27, 2023
@yang05051 yang05051 changed the title [改进]: 建议在 tun 的配置下添加 "inet6_address": "fc00::/18" [Feature request]: 建议在 tun 的配置下添加 "inet6_address": "fc00::/18" May 27, 2023
@shaojs321
Copy link

我在tunConfig.json添加了 "inet6_address": "fc00::/18", 还是在 tun 配置下无法解析纯 ipv6 网站啊

@shaojs321
Copy link

我在tunConfig.json添加了 "inet6_address": "fc00::/18", 还是在 tun 配置下无法解析纯 ipv6 网站啊

不是直接添加fc00::/18,而是添加路由器中本地ipv6,可以去op中找,例如op中
111111111111111111111111111
那可以添加 "inet6_address": "fdc4::/18",

@yang05051
Copy link
Author

yang05051 commented Jun 3, 2023

我在tunConfig.json添加了 "inet6_address": "fc00::/18", 还是在 tun 配置下无法解析纯 ipv6 网站啊

直接修改 tunConfig.json 肯定不生效啊,要在软件的“自定义 tun 配置”那里修改

@yang05051
Copy link
Author

我在tunConfig.json添加了 "inet6_address": "fc00::/18", 还是在 tun 配置下无法解析纯 ipv6 网站啊

不是直接添加fc00::/18,而是添加路由器中本地ipv6,可以去op中找,例如op中
111111111111111111111111111
那可以添加 "inet6_address": "fdc4::/18",

和路由器没关系的,在 tun 的配置中添加了那一行后,纯 IPv4 环境下开启 tun 模式后也能解析 IPv6 网址

@2dust
Copy link
Owner

2dust commented Jun 4, 2023

@yang05051
请问添加这个地址 "inet6_address": "fdfe:dcba:9876::1/126", 是否可以?
这个是sing-box例子中带有

@yang05051
Copy link
Author

yang05051 commented Jun 4, 2023

@yang05051
请问添加这个地址 "inet6_address": "fdfe:dcba:9876::1/126", 是否可以?
这个是sing-box例子中带有

理论上是可以的,我晚一点会测试一下

@2dust
Copy link
Owner

2dust commented Jun 4, 2023

https://github.com/2dust/v2rayN/files/11645245/v2rayN.zip

此版本已经 加上 "inet6_address": "fdfe:dcba:9876::1/126",

@yang05051
Copy link
Author

https://github.com/2dust/v2rayN/files/11645245/v2rayN.zip

此版本已经 加上 "inet6_address": "fdfe:dcba:9876::1/126",

大佬辛苦啦

@2dust 2dust closed this as completed Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants