vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.05k stars 2.98k forks source link

一开启openclash ,ipv6就失效 #633

Closed yang05130 closed 2 years ago

yang05130 commented 3 years ago

有试过在dns设置里开启ipv6的解析,还是没有用,openclash一关闭,ipv6就正常

vernesong commented 3 years ago

发调试日志

yang05130 commented 3 years ago

OpenClash 调试日志

生成时间: 2020-08-05 11:37:19 插件版本: v0.39.6-beta

===================== 系统信息 =====================

主机型号: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz : 2 Core 4 Thread 固件版本: OpenWrt SPP 0701[2020] LuCI版本: git-20.180.30743-de9fdad-1 内核版本: 4.19.122 处理器架构: x86_64

此项在使用Tun模式时应为ACCEPT

防火墙转发: ACCEPT

此项有值时建议到网络-接口-lan的设置中禁用IPV6的DHCP

IPV6-DHCP: server

此项结果应仅有配置文件的DNS监听地址

Dnsmasq转发设置: 127.0.0.1#7874

===================== 依赖检查 =====================

dnsmasq-full: 已安装 coreutils: 已安装 coreutils-nohup: 已安装 bash: 已安装 curl: 已安装 jsonfilter: 已安装 ca-certificates: 已安装 ipset: 已安装 ip-full: 已安装 iptables-mod-tproxy: 已安装 kmod-tun(TUN模式): 已安装 luci-compat(Luci-19.07): 未安装

===================== 内核检查 =====================

运行状态: 运行中 已选择的架构: linux-amd64

下方无法显示内核版本号时请确认您的内核版本是否正确或者有无权限

Tun内核版本: Tun内核文件: 不存在 Tun内核运行权限: 否

Game内核版本: Game内核文件: 不存在 Game内核运行权限: 否

Dev内核版本: v1.0.0-23-gb1d9dfd Dev内核文件: 存在 Dev内核运行权限: 正常

===================== 插件设置 =====================

当前配置文件: /etc/openclash/config/615 (1).yaml 运行模式: redir-host 默认代理模式: rule UDP流量转发: 启用 DNS劫持: 启用 自定义DNS: 停用 IPV6-DNS解析: 启用 禁用Dnsmasq缓存: 启用 自定义规则: 停用 仅允许内网: 停用 仅代理命中规则流量: 停用

启动异常时建议关闭此项后重试

保留配置: 停用 第三方规则: 停用

===================== 配置文件 =====================

mixed-port: 7890 socks-port: 7891 allow-lan: true bind-address: "*" log-level: info external-controller: 0.0.0.0:9090 experimental: ignore-resolve-fail: true cfw-latency-timeout: 3000 cfw-latency-url: http://www.gstatic.com/generate_204 cfw-conn-break-strategy: proxy: none profile: true ipv6: true mode: rule cfw-proxies-order: default cfw-bypass-bak:

'*.clash.dev': 127.0.0.1

'alpha.clash.dev': '::1'

Custom HOSTS END

dns: enable: true ipv6: true enhanced-mode: redir-host listen: 0.0.0.0:7874 nameserver:

===================== 防火墙设置 =====================

NAT chain

Chain PREROUTING (policy ACCEPT) num target prot opt source destination
1 REDIRECT tcp -- 0.0.0.0/0 8.8.4.4 redir ports 7892 2 REDIRECT tcp -- 0.0.0.0/0 8.8.8.8 redir ports 7892 3 SS_SPEC_WAN_AC tcp -- 0.0.0.0/0 0.0.0.0/0 / _SS_SPECRULE / 4 prerouting_rule all -- 0.0.0.0/0 0.0.0.0/0 / !fw3: Custom prerouting rule chain / 5 zone_lan_prerouting all -- 0.0.0.0/0 0.0.0.0/0 / !fw3 / 6 zone_wan_prerouting all -- 0.0.0.0/0 0.0.0.0/0 / !fw3 / 7 zone_wan_prerouting all -- 0.0.0.0/0 0.0.0.0/0 / !fw3 / 8 zone_vpn_prerouting all -- 0.0.0.0/0 0.0.0.0/0 / !fw3 / 9 REDIRECT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53 redir ports 53 10 REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 redir ports 53 11 openclash tcp -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT) num target prot opt source destination
1 SS_SPEC_WAN_AC tcp -- 0.0.0.0/0 0.0.0.0/0 / _SS_SPECRULE /

Mangle chain

Chain PREROUTING (policy ACCEPT) num target prot opt source destination
1 openclash udp -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT) num target prot opt source destination
1 RRDIPT_OUTPUT all -- 0.0.0.0/0 0.0.0.0/0

===================== 路由表状态 =====================

route -n

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.30.0.1 0.0.0.0 UG 0 0 0 pppoe-wan 172.30.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 pppoe-wan 192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan

ip route list

default via 172.30.0.1 dev pppoe-wan proto static 172.30.0.1 dev pppoe-wan proto kernel scope link src 172.30.222.179 192.168.5.0/24 dev br-lan proto kernel scope link src 192.168.5.1

ip rule show

0: from all lookup local 32765: from all fwmark 0x162 lookup 354 32766: from all lookup main 32767: from all lookup default

===================== 端口占用状态 =====================

tcp 0 0 :::9090 ::: LISTEN 19012/clash tcp 0 0 :::7890 ::: LISTEN 19012/clash tcp 0 0 :::7891 ::: LISTEN 19012/clash tcp 0 0 :::7892 ::: LISTEN 19012/clash udp 0 0 :::42223 ::: 19012/clash udp 0 0 :::48523 ::: 19012/clash udp 0 0 :::7874 ::: 19012/clash udp 0 0 :::7891 ::: 19012/clash udp 0 0 :::7892 ::: 19012/clash udp 0 0 :::34559 ::: 19012/clash udp 0 0 :::57099 ::: 19012/clash udp 0 0 :::42796 ::: 19012/clash udp 0 0 :::47067 ::: 19012/clash udp 0 0 :::51169 ::: 19012/clash

===================== 测试本机DNS查询 =====================

Server: 127.0.0.1 Address: 127.0.0.1#53

Name: www.baidu.com www.baidu.com canonical name = www.a.shifen.com Name: www.a.shifen.com Address 1: 183.232.231.172 Address 2: 183.232.231.174 www.baidu.com canonical name = www.a.shifen.com

===================== resolv.conf.auto =====================

Interface wan

nameserver 120.196.165.24 nameserver 211.136.192.6

Interface wan_6

nameserver 2409:8057:2000:6::8 nameserver 2409:8057:2000:2::8

===================== 测试本机网络连接 =====================

HTTP/1.1 200 OK Accept-Ranges: bytes Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform Connection: keep-alive Content-Length: 277 Content-Type: text/html Date: Wed, 05 Aug 2020 03:37:19 GMT Etag: "575e1f6f-115" Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT Pragma: no-cache Server: bfe/1.0.8.18

===================== 测试本机网络下载 =====================

HTTP/1.1 200 Connection established

HTTP/1.1 200 OK Connection: keep-alive Content-Length: 78 Cache-Control: max-age=300 Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox Content-Type: text/plain; charset=utf-8 ETag: "56417554e8a02b424cd394a68a2a5bad09c7fe082354c7ba869cbdf81b0bd750" Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: deny X-XSS-Protection: 1; mode=block Via: 1.1 varnish (Varnish/6.0) X-GitHub-Request-Id: 2A68:1EFE:633CAF:767EA1:5F2A1B73 Accept-Ranges: bytes Date: Wed, 05 Aug 2020 03:37:20 GMT Via: 1.1 varnish X-Served-By: cache-hkg17924-HKG X-Cache: HIT, HIT X-Cache-Hits: 2, 1 X-Timer: S1596598640.096200,VS0,VE1 Vary: Authorization,Accept-Encoding Access-Control-Allow-Origin: * X-Fastly-Request-ID: 75d2ebd133fa6372e8caf2ce4373176bea1ba5e3 Expires: Wed, 05 Aug 2020 03:42:20 GMT Source-Age: 201

===================== 最近运行日志 =====================

time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🇰🇷 韩国节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🇨🇳 台湾节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🛑 广告拦截" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🌍 国外媒体" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🎥 HBO" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 📺 巴哈姆特" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 📲 电报消息" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🇸🇬 狮城节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🇭🇰 香港节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🎥 奈飞节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🎮 游戏平台" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🎶 网易音乐" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🇺🇲 美国节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🇯🇵 日本节点" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🐟 漏网之鱼" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🌏 国内媒体" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🎥 奈飞视频" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 📹 油管视频" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🚀 手动切换" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider ♻️ 自动选择" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🚀 节点选择" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🎯 全球直连" time="2020-08-05T03:37:08Z" level=info msg="Start initial compatible provider 🍎 苹果服务" time="2020-08-05T03:37:08Z" level=info msg="DNS server listening at: 0.0.0.0:7874" time="2020-08-05T03:37:09Z" level=info msg="[UDP] 192.168.5.160:60919 --> 203.208.41.37 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2020-08-05T03:37:09Z" level=info msg="[TCP] 192.168.5.160:51960 --> 203.208.41.37 match GeoIP(CN) using 🎯 全球直连[DIRECT]" 2020-08-05 11:37:03 OpenClash Start Successful, Please Note That Network May Abnormal With IPV6's DHCP Server time="2020-08-05T03:37:17Z" level=info msg="[TCP] 192.168.5.1:36028 --> raw.githubusercontent.com match DomainKeyword(github) using 🚀 节点选择[🇭🇰 VIP1 香港08 NF]" time="2020-08-05T03:37:18Z" level=info msg="[TCP] 192.168.5.160:51974 --> 116.211.199.14 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2020-08-05T03:37:20Z" level=info msg="[TCP] 192.168.5.1:36300 --> raw.githubusercontent.com match DomainKeyword(github) using 🚀 节点选择[🇭🇰 VIP1 香港08 NF]"

vernesong commented 3 years ago

ip6tables-mod-nat装了吗

yang05130 commented 3 years ago

装上这个就可以吗

sixrui commented 3 years ago

装上这个就可以吗

请问你解决这个问题了吗

vernesong commented 3 years ago

ipv6流量不过openclash,插件dns选项开启ipv6解析

a904055262 commented 2 years ago

我也这样,有解决方法么?

Jztsctl commented 2 years ago
dns

全局设置→DNS设置→允许IPV6类型DNS解析 这个默认是没有打开的,我打开也不好用。

我一启用OpenClash,在https://www.test-ipv6.com/测试就是0分,也确实无法打开ipv6的网站。 把OpenClash关闭,马上就好用。很是尴尬...

vernesong commented 2 years ago

更新,用redir模式

Jztsctl commented 2 years ago

没好用啊~是不是我哪里设置错了

a1 a2 a3
vernesong commented 2 years ago

网关DNS是不是路由地址?关掉绕过国内控制面板有没有v6的连接

Jztsctl commented 2 years ago

关闭绕过中国大陆IP 没有V6连接。 v4的DNS是自己在路由器设置的,v6的DNS没有设置,应该是运营商下发的。

v4 v6 b1

b2

vernesong commented 2 years ago

DNS服务器和网关必须是路由器地址

Jztsctl commented 2 years ago
v4

ipv4的dns和网关都是路由器地址也不好用!

ipv6的dns和网关不知道该怎么填,就用默认获取的,反正是现在还是不好用。 我也不太懂,谢谢一直解惑,不行就这样吧。非常感谢!

vernesong commented 2 years ago

IPV6不改就用不了,不然你就禁用IPV6

a904055262 commented 2 years ago

IPV6不改就用不了,不然你就禁用IPV6

大佬,我想问下旁路由接管ipv6的dns和网关??dnsmasq可以设置ipv6的dns指向旁路由,但是有兼容问题,安卓手机就不会按照设置,网关更是直接就没办法指定了。 有其他办法么

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

sss132919 commented 2 years ago

是否关掉ipv6流量代理?

siyang814 commented 1 year ago

我跟你的问题一样 , 你的问题解决了吗?

Jztsctl commented 1 year ago

没解决,用回其他插件了。其他的插件一启用ipv6就可以直接用,它不行~我瞎鼓捣一堆也没好用。可能我比较菜,至少这个功能不太友善~

fxdw09 commented 1 year ago

我也遇到了同样的问题,openClash关闭,可以检测到IPV6的地址,并且可以IPV6测试正常,访问也是正常的。 打开openClash后,IPV6就检测异常了,测试显示没有IPV6地址,目前么有找到答案,求助大佬

sss132919 commented 1 year ago

我也遇到了同样的问题,openClash关闭,可以检测到IPV6的地址,并且可以IPV6测试正常,访问也是正常的。 打开openClash后,IPV6就检测异常了,测试显示没有IPV6地址,目前么有找到答案,求助大佬

换梯子,可能是梯子运营商不支持ipv6 dns解析

Jztsctl commented 1 year ago

没解决,不用这个了,同样的梯子用别的就行...不知道现在这个插件怎样了,我那没鼓捣明白

GeekXtop commented 1 year ago

DNS服务器和网关必须是路由器地址

同样的问题,openwrt如何更改ipv6的 dns服务器为路由器地址??

homuraLan commented 6 months ago

同,还以为固件坏了

exing2 commented 4 months ago

我也想解决这个问题,没有好方法吗?openclash还是很好用的,就是打开就没有v6了,怎么破

xiaopang11764 commented 3 months ago

我也想解决这个问题,有好的方法吗?openclash还是很好用的,就是打开就没有v6了,怎么破

我也是遇到同样问题,经过尝试。总结如下:我是硬路由AC86U安装的clash,在首页功能,DNS方案那里选择前者(默认)Redir-Host模式下iPv6是失效,网络优点:网速是最快的,百度下载网盘可以跑到82MB/S(我是2条300M联通宽带使用华硕双线路模式聚合),YouTube也可以跑满300M(外网满速)。选择后者Fake-ip模式iPv6是可用的。缺点:百度网盘下载网速40MB/S(应该是只识别到了一条宽带),外网速度和前者不相上下。

xiaopang11764 commented 3 months ago

我也遇到同样的问题,经过尝试。总结如下:我是硬路由AC86U安装的冲突,在首页功能中,DNS方案那里选择前面(默认)Redir-Host模式下iPv6是无效的,网络优点:网速是最快的,百度下载网盘可以跑到82MB/S(我是2条300M联通宽带使用华硕双线路模式聚合),YouTube也可以跑满300M(外网满速)。选择晚上Fake-ip模式iPv6缺点:百度网盘下载网速40MB/S(应该是只识别到了一条宽带),外网速度和前面不相上下。