Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[Bug Report] YouTube视频无法播放 #36

Closed
crezy8 opened this issue Jun 15, 2019 · 23 comments
Closed

[Bug Report] YouTube视频无法播放 #36

crezy8 opened this issue Jun 15, 2019 · 23 comments
Labels
duplicate This issue or pull request already exists invalid This doesn't seem right question Further information is requested wontfix This will not be worked on

Comments

@crezy8
Copy link

crezy8 commented Jun 15, 2019

Bug 详情

youtube视频无法播放,youtube页面可以打开,但视频一直处于加载状态

你的操作

使用浏览器查看了网络连接和console错误信息,发现浏览器请求的视频地址被BLOCK,所以一直在不断重试

屏幕截图
image

调试信息
网络连接信息
image

console
image


======================== KoolClash 调试工具 ========================
调试信息生成于 Sat Jun 15 2019 09:32:20 GMT+0800 (China Standard Time)
当前浏览器:Chrome 74
-------------------- Koolshare OpenWrt 基本信息 --------------------
固件版本: Openwrt Koolshare mod V2.30, r10402-51ad900e2c by fw867
路由器 LAN IP:10.0.0.11
------------------------ KoolClash 基本信息 ------------------------
KoolClash 版本:0.17.4-beta
Clash 核心版本:Clash v0.14.0-7-g89168e6 linux amd64 Sat 18 May 2019 05:35:13 PM UTC
KoolClash 当前状态:Clash 进程正在运行
用户指定 Clash 外部控制 Host:未改动
IP 数据库是否存在:true
-------------------------- Clash 进程信息 --------------------------
30972 root      116m S    /koolshare/bin/clash -d /koolshare/koolclash/config/
31718 root      1072 S    /bin/sh /koolshare/scripts/koolclash_debug.sh 303402
31847 root      1072 S    /bin/sh /koolshare/scripts/koolclash_debug.sh 303402

------------------------ Clash 配置文件信息 ------------------------
Clash 原始配置文件是否存在:true
Clash 运行配置文件是否存在:true
Clash 透明代理端口:23456
Clash 是否允许局域网连接:true
Clash 外部控制监听地址:10.0.0.11:6170
--------------------- Clash 配置文件 DNS 配置 ----------------------
Clash DNS 是否启用:true
Clash DNS 解析 IPv6:false
Clash DNS 增强模式:fake-ip
Clash DNS 监听:0.0.0.0:23453
KoolClash 当前 DNS 模式:1
-------------------- KoolClash 自定义 DNS 配置 ---------------------

------------------------- iptables 条目 ---------------------------
 * iptables mangle 中 Clash 相关条目


 * iptables nat 中 Clash 相关条目
    0     0 koolclash_dns  tcp  --  *      *       0.0.0.0/0            198.19.0.0/24        tcp dpt:53
    0     0 koolclash_dns  udp  --  *      *       0.0.0.0/0            198.19.0.0/24        udp dpt:53
   55  3280 koolclash  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           


 * iptables mangle 中 koolclash 链


 * iptables nat 中 koolclash 链
   45  2700 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            match-set koolclash_white dst
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22
   10   580 REDIRECT   tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            redir ports 23456


* iptables mangle 中 koolclash_dns 链


 * iptables nat 中 koolclash_dns 链
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            198.19.0.0/24        udp dpt:53 to:10.0.0.11:23453
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            198.19.0.0/24        tcp dpt:53 to:10.0.0.11:23453


 * iptables nat 中 Chromecast 相关条目
1     638K   43M DNAT       udp  --  *      *       10.0.0.0/24          0.0.0.0/0            udp dpt:53 to:10.0.0.11
6        0     0 koolclash_dns  tcp  --  *      *       0.0.0.0/0            198.19.0.0/24        tcp dpt:53
7        0     0 koolclash_dns  udp  --  *      *       0.0.0.0/0            198.19.0.0/24        udp dpt:53

---------------------- ipset 白名单 IP 列表 ------------------------
Name: koolclash_white
Type: hash:net
Revision: 6
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 984
References: 1
Number of entries: 10
Members:
192.168.0.0/16
240.0.0.0/4
0.0.0.0/8
127.0.0.0/8
169.254.0.0/16
10.0.0.0/8
10.0.0.11
172.16.0.0/12
100.64.0.0/10
224.0.0.0/4


===================================================================

@SukkaW SukkaW added duplicate This issue or pull request already exists invalid This doesn't seem right labels Jun 15, 2019
@HuiGesGitHub
Copy link

遇到了同样的问题。比如Youtube能访问,而且页面速度很快,但是视频一直转圈;比如打不开google主页,但是在主页后面还有网址的网页能打开,比如google帮助页面;比如能打开twitter,但是twitter页面里嵌套的视频都一直转圈。在youtube页面,connection speed显示有速度,但是network activity和buffer health均为0

@HuiGesGitHub
Copy link

不懂代码,但是个人理解应该是嵌套的视频因为跳转,变成了直连吧?没有收到clash规则约束。

@SukkaW
Copy link
Owner

SukkaW commented Jun 21, 2019

在使用 KoolClash 时遇到的 Windows 系统下 YouTube 无法访问、Google 无法访问、网易云音乐UWP 无法正常播放,属于 #已知问题 ,由 Clash 内部 DNS TTL 引起,KoolClash 暂时无能为力。暂时的解决方法要 ipconfig /flushdns、重启 UWP 应用、Chrome 浏览器清除内部 DNS 缓存。
YouTube 可以访问但视频无法播放是因为 Clash 的规则分流或 TCP 连接保持导致触发了 YouTube 防盗链规则,或者是 Clash 内部 DNS TTL 过期引起,KoolClash 同样无能为力,重启 Clash 可解。

@terlanks
Copy link

我是在macos上也遇到这个问题,之前用0.16.x版本的时候我是通过打开Chromecast可以继续访问google和youtube,但是现在0.17已经没有chromecast支持了,用以上版本在mac中并没有效果,还有什么办法呢?

@xiaomingplus
Copy link

同遇到这个问题,很影响使用啊,刷新dns,google还是打不开。

@xiaomingplus
Copy link

www.google.com 通常会使用加密技术来保护您的信息。Google Chrome 此次尝试连接到 www.google.com 时,此网站发回了异常的错误凭据。这可能是因为有攻击者在试图冒充 www.google.com,或 Wi-Fi 登录屏幕中断了此次连接。请放心,您的信息仍然是安全的,因为 Google Chrome 尚未进行任何数据交换便停止了连接。

您目前无法访问 www.google.com,因为此网站使用了 HSTS。网络错误和攻击通常是暂时的,因此,此网页稍后可能会恢复正常。

@xiaomingplus
Copy link

我的找到了,是我的配置问题,不知道为什么ipv6被勾上了,dns优先走的是ipv6

@miroda
Copy link

miroda commented Jul 22, 2019

同样的配置在mac的clash运行是么有问题的,但是在koolshare里面 就不行了,就是无法打开youtube视频,可以打开youtube网站

@contributionls
Copy link

@miroda you can try reboot your computer.

@miroda
Copy link

miroda commented Jul 24, 2019

@miroda you can try reboot your computer.
not work after thousands of reboot

@miroda
Copy link

miroda commented Jul 24, 2019

======================= KoolClash 调试工具 ========================
调试信息生成于 Wed Jul 24 2019 22:16:57 GMT+0800 (中国标准时间)
当前浏览器:Chrome 75
-------------------- Koolshare OpenWrt 基本信息 --------------------
固件版本: Openwrt Koolshare mod V2.31, r10822-50aa0525d1 by fw867
路由器 LAN IP:192.168.100.1
------------------------ KoolClash 基本信息 ------------------------
KoolClash 版本:0.17.5-beta
Clash 核心版本:Clash v0.15.0-2-g7c6c147 linux amd64 Thu 11 Jul 2019 01:24:28 PM UTC
KoolClash 当前状态:Clash 进程正在运行
用户指定 Clash 外部控制 Host:192.168.100.1
-------------------------- Clash 进程信息 --------------------------
2711 root 1080 S /bin/sh /koolshare/scripts/koolclash_debug.sh 487907
2821 root 1080 S /bin/sh /koolshare/scripts/koolclash_debug.sh 487907
20711 root 117m S /koolshare/bin/clash -d /koolshare/koolclash/config/
21205 root 1080 S /bin/sh /koolshare/scripts/koolclash_watchdog.sh

------------------------ Clash 配置文件目录 ------------------------
-rw-r--r-- 1 root root 3.7M Jul 20 16:05 Country.mmdb
-rw-r--r-- 1 root root 0 Jul 20 16:03 config.yaml
-rw-r--r-- 1 root root 83.8K Jul 20 22:22 config.yml
-rw-r--r-- 1 root root 48 Jul 24 21:59 dns.yml
-rw-r--r-- 1 root root 83.8K Jul 20 22:22 origin.yml

------------------------ Clash 配置文件信息 ------------------------
Clash 透明代理端口:23456
Clash 是否允许局域网连接:true
Clash 外部控制监听地址:192.168.100.1:6170
--------------------- Clash 配置文件 DNS 配置 ----------------------
Clash DNS 是否启用:true
Clash DNS 解析 IPv6:false
Clash DNS 增强模式:fake-ip
Clash DNS 监听:0.0.0.0:23453
KoolClash 当前 DNS 模式:4
-------------------- KoolClash 自定义 DNS 配置 ---------------------
正在加载存储的 Clash DNS Config 配置...
------------------------- iptables 条目 ---------------------------

  • iptables mangle 中 Clash 相关条目

  • iptables nat 中 Clash 相关条目
    0 0 koolclash_dns tcp -- * * 0.0.0.0/0 198.19.0.0/24 tcp dpt:53
    0 0 koolclash_dns udp -- * * 0.0.0.0/0 198.19.0.0/24 udp dpt:53
    1996 106K koolclash tcp -- * * 0.0.0.0/0 0.0.0.0/0

  • iptables mangle 中 koolclash 链

  • iptables nat 中 koolclash 链
    972 51400 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 match-set koolclash_white dst
    0 0 ACCEPT tcp -- * * 0.0.0.0/0 192.168.100.1 tcp dpt:22
    1023 54985 REDIRECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 redir ports 23456

  • iptables mangle 中 koolclash_dns 链

  • iptables nat 中 koolclash_dns 链
    0 0 DNAT udp -- * * 0.0.0.0/0 198.19.0.0/24 udp dpt:53 to:192.168.100.1:23453
    0 0 DNAT tcp -- * * 0.0.0.0/0 198.19.0.0/24 tcp dpt:53 to:192.168.100.1:23453

  • iptables nat 中 53 端口相关条目
    5 0 0 koolclash_dns tcp -- * * 0.0.0.0/0 198.19.0.0/24 tcp dpt:53
    6 0 0 koolclash_dns udp -- * * 0.0.0.0/0 198.19.0.0/24 udp dpt:53

---------------------- ipset 白名单 IP 列表 ------------------------
Name: koolclash_white
Type: hash:net
Revision: 6
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 984
References: 1
Number of entries: 10
Members:
192.168.100.1
192.168.0.0/16
0.0.0.0/8
240.0.0.0/4
10.0.0.0/8
172.16.0.0/12
100.64.0.0/10
127.0.0.0/8
169.254.0.0/16
224.0.0.0/4

===================================================================

@KiteMoon
Copy link

KiteMoon commented Aug 1, 2019

同样遇到谷歌网页无法打开和YouTube无法播放视频bug,清空系统与浏览器DNS缓存后几率性恢复,这个bug以后还会继续修复吗?

@SukkaW
Copy link
Owner

SukkaW commented Aug 2, 2019

统一回答一下吧。
由于 TCP 会话保持,切换节点后 Clash 不会切断现有的 TCP 连接,所以现有的 TCP 连接都会使用之前的节点。而 YouTube 有防盗链机制,打开主站和请求 API 的 IP 必须和请求视频 CDN 的 IP 是相同的(或至少在一个 /24 里),所以 Auto Fallback 的节点在 YouTube 都可能触发防盗链 403。

@SukkaW SukkaW added question Further information is requested wontfix This will not be worked on labels Aug 2, 2019
@boyeye
Copy link

boyeye commented Aug 13, 2019

新版本Clash DNS :fake-ip
老版本Clash DNS :redir-host
这个是最根本的原因,我遇到了同样的问题,找了很多资料才找到原因的,我果断刷回0.16.1了,0.17.0之后的版本DNS都强制fake-ip了

@eyaeya
Copy link

eyaeya commented Sep 3, 2019

新版本Clash DNS :fake-ip
老版本Clash DNS :redir-host
这个是最根本的原因,我遇到了同样的问题,找了很多资料才找到原因的,我果断刷回0.16.1了,0.17.0之后的版本DNS都强制fake-ip了

这个问题同会导致Netflix检测出来使用代理,导致被封锁无法观看。

@boyeye
Copy link

boyeye commented Sep 3, 2019 via email

@eyaeya
Copy link

eyaeya commented Sep 4, 2019

谢谢你的回复,现在162的版本很不错 发自我的 iPhone 在 2019年9月3日,11:37,eyaeya <notifications@github.commailto:notifications@github.com> 写道: 新版本Clash DNS :fake-ip 老版本Clash DNS :redir-host 这个是最根本的原因,我遇到了同样的问题,找了很多资料才找到原因的,我果断刷回0.16.1了,0.17.0之后的版本DNS都强制fake-ip了 这个问题同会导致Netflix检测出来使用代理,导致被封锁无法观看。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#36?email_source=notifications&email_token=AM4G3IOOKIXJ54GYT3AD4N3QHXLWVA5CNFSM4HYN77P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5W5HIY#issuecomment-527291299>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AM4G3IKWY5D7R5Y44APNJOTQHXLWVANCNFSM4HYN77PQ.

是的,估计我要永远停留在1.62版本了。
再往后的版本,Netflix看不了是大坑了。

@eyaeya
Copy link

eyaeya commented Sep 4, 2019

谢谢你的回复,现在162的版本很不错 发自我的 iPhone 在 2019年9月3日,11:37,eyaeya <notifications@github.commailto:notifications@github.com> 写道: 新版本Clash DNS :fake-ip 老版本Clash DNS :redir-host 这个是最根本的原因,我遇到了同样的问题,找了很多资料才找到原因的,我果断刷回0.16.1了,0.17.0之后的版本DNS都强制fake-ip了 这个问题同会导致Netflix检测出来使用代理,导致被封锁无法观看。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#36?email_source=notifications&email_token=AM4G3IOOKIXJ54GYT3AD4N3QHXLWVA5CNFSM4HYN77P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5W5HIY#issuecomment-527291299>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AM4G3IKWY5D7R5Y44APNJOTQHXLWVANCNFSM4HYN77PQ.

或者,你也可以试试OpenClash,看群友反馈比KoolClash稳定,且开发者解决问题及时友好。

@alipapabi
Copy link

遇到同样的问题,最后选择 Redir-Host+ 这个模式成功解套

@oswinzong
Copy link

困扰好几天的问题终于解决了。我问题和大家基本一致,YouTube 页面可以打开,播放不了,google打不开。但是,最诡异地方是家里装win7的电脑都可以使用。现在使用0.16.2版本,一切正常了

@crezy8 crezy8 closed this as completed Dec 7, 2020
@hy31512-maker
Copy link

hy31512-maker commented Dec 24, 2020

我的解决了
2020-12-24 18-40-32

@gaotingnaiye
Copy link

时间来到了2021年下半年了,我也碰到了这个YouTube视频不能播放的问题,请问有办法解决了没有现在。我的clash版本是0.16.2

@f677u
Copy link

f677u commented Aug 23, 2021

遇到同样的问题,最后选择Redir-Host+这个模式成功解套

我也是这样的问题,谢谢已经解决

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists invalid This doesn't seem right question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests