SukkaW / Koolshare-Clash

:cat: Run Clash Tunnel on Koolshare OpenWrt

Home Page:https://koolclash.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug Report] Youtube 流量不能被匹配不能被匹配规则库

Xhmx1203 opened this issue · comments

Bug 详情

感觉规则库不准确,没有 youtube 规则库。
youtube 流量不完整,youtube可以打开,但是显示不正常。

你的操作

使用规则代理,大部分流量被匹配到漏网之鱼 上去,若把漏网之鱼 匹配到代理上去,是可以正常访问,但是这样流量巨大,无法承受。

不知道如何更新现有规则?求助。

屏幕截图

youtube

rule
clash

调试信息

======================== KoolClash 调试工具 ========================
调试信息生成于 Sun Dec 19 2021 16:19:33 GMT+0800 (**标准时间)
当前浏览器:Chrome 96
-------------------- Koolshare OpenWrt 基本信息 --------------------
固件版本: Openwrt Koolshare mod V2.31, r10822-50aa0525d1 by fw867
路由器 LAN IP:192.168.2.254
------------------------ KoolClash 基本信息 ------------------------
KoolClash 版本:0.17.9-beta
Clash 核心版本:Clash v1.8.0 linux amd64 with go1.17.3 Mon Nov 8 13:26:00 UTC 2021
KoolClash 当前状态:Clash 进程正在运行
用户指定 Clash 外部控制 Host:192.168.2.254
-------------------------- Clash 进程信息 --------------------------
1294 root 1068 S tail -f koolclash_log.txt
21047 root 1080 S /bin/sh /koolshare/scripts/koolclash_debug.sh 706110
21148 root 1080 S /bin/sh /koolshare/scripts/koolclash_debug.sh 706110
21151 root 1080 R /bin/sh /koolshare/scripts/koolclash_debug.sh 706110
21153 root 1080 R /bin/sh /koolshare/scripts/koolclash_debug.sh 706110
26400 root 700m S /koolshare/bin/clash -d /koolshare/koolclash/config/
26527 root 1080 S /bin/sh /koolshare/scripts/koolclash_watchdog.sh

------------------------ Clash 配置文件目录 ------------------------
-rwxr-xr-x 1 root root 3.8M Dec 18 20:01 Country.mmdb
-rw-r--r-- 1 root root 32.0K Dec 19 16:18 cache.db
-rw-r--r-- 1 root root 555.6K Dec 18 22:00 config.yaml
-rw-r--r-- 1 root root 240 Dec 19 16:19 dns.yml
-rw-r--r-- 1 root root 555.3K Dec 18 20:55 origin.yml

------------------------ Clash 配置文件信息 ------------------------
Clash 透明代理端口:23456
Clash 是否允许局域网连接:true
Clash 外部控制监听地址:192.168.2.254: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 配置 ---------------------
dns:
enable: true
ipv6: false
listen: 0.0.0.0:53
enhanced-mode: fake-ip
nameserver:
- 119.28.28.28
- 119.29.29.29
- 223.5.5.5
- tls://dns.rubyfish.cn:853
fallback:
- tls://1.0.0.1:853
- tls://8.8.4.4:853

------------------------- 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
    59376 3595K koolclash tcp -- * * 0.0.0.0/0 0.0.0.0/0

  • iptables mangle 中 koolclash 链

  • iptables nat 中 koolclash 链
    106 5728 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.2.254 tcp dpt:22
    59270 3589K 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.2.254:23453
    0 0 DNAT tcp -- * * 0.0.0.0/0 198.19.0.0/24 tcp dpt:53 to:192.168.2.254:23453

  • iptables nat 中 53 端口相关条目
    3 0 0 koolclash_dns tcp -- * * 0.0.0.0/0 198.19.0.0/24 tcp dpt:53
    4 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.2.254
10.0.0.0/8
127.0.0.0/8
240.0.0.0/4
192.168.0.0/16
172.16.0.0/12
0.0.0.0/8
224.0.0.0/4
100.64.0.0/10
169.254.0.0/16

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

已解决,自己把日志中 timeout的那部分ip地址添加到 config.yaml 中,就可以了。