SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
19.51k stars 2.32k forks source link

SFA中,package_name规则在访问维基等网站时无法命中 #2160

Open ZehuaMc opened 2 weeks ago

ZehuaMc commented 2 weeks ago

操作系统

Android

系统版本

Android14 ColorOS14.0

安装类型

sing-box for Android 图形客户端程序

如果您使用图形客户端程序,请提供该程序版本。

1.10.0-beta.11

版本

No response

描述

在route.rule中把夸克浏览器的包名(com.quark.browser)设置了直连,但是访问维基等网站依旧走了代理

重现方式

config.json

日志

+0800 2024-10-06 04:06:36 INFO [1334704845 3ms] router: found package name: com.quark.browser
+0800 2024-10-06 04:06:36 INFO [616630920 0ms] inbound/tun[tun-in]: inbound connection to 199.16.158.12:443
+0800 2024-10-06 04:06:36 DEBUG [1334704845 4ms] router: match[0] protocol=dns => dns-out
+0800 2024-10-06 04:06:36 INFO [3361856292 0ms] inbound/tun[tun-in]: inbound connection from 172.18.0.1:45256
+0800 2024-10-06 04:06:36 INFO [3361856292 0ms] inbound/tun[tun-in]: inbound connection to 198.35.26.112:443
+0800 2024-10-06 04:06:36 DEBUG [346217848 12ms] router: sniffed protocol: tls, domain: applog.lc.quark.cn
+0800 2024-10-06 04:06:36 INFO [590957600 0ms] inbound/tun[tun-in]: inbound connection from 172.18.0.1:59392
+0800 2024-10-06 04:06:36 INFO [590957600 0ms] inbound/tun[tun-in]: inbound connection to 203.119.175.215:443
+0800 2024-10-06 04:06:36 INFO [346217848 13ms] router: failed to search process: Attempt to invoke virtual method 'byte[] java.net.InetAddress.getAddress()' on a null object reference
+0800 2024-10-06 04:06:36 DEBUG [346217848 13ms] router: match[3] rule_set=privateip => direct-out
+0800 2024-10-06 04:06:36 INFO [346217848 13ms] outbound/direct[direct-out]: outbound connection to applog.lc.quark.cn:443
+0800 2024-10-06 04:06:36 INFO [2119525423 0ms] inbound/tun[tun-in]: inbound packet connection from 172.18.0.1:59482
+0800 2024-10-06 04:06:36 INFO [2119525423 0ms] inbound/tun[tun-in]: inbound packet connection to 172.18.0.2:53
+0800 2024-10-06 04:06:36 DEBUG [2119525423 0ms] router: sniffed packet protocol: dns
+0800 2024-10-06 04:06:36 INFO [2119525423 1ms] router: found package name: com.quark.browser
+0800 2024-10-06 04:06:36 DEBUG [2119525423 1ms] router: match[0] protocol=dns => dns-out
+0800 2024-10-06 04:06:36 DEBUG [2119525423 1ms] dns: exchange zh.m.wikipedia.org. IN A
+0800 2024-10-06 04:06:36 INFO [2119525423 2ms] outbound/direct[direct-out]: outbound connection to 120.53.53.53:443
+0800 2024-10-06 04:06:36 DEBUG [1334704845 18ms] dns: exchange upload.wikimedia.org. IN A
+0800 2024-10-06 04:06:36 INFO [1334704845 18ms] outbound/direct[direct-out]: outbound connection to 120.53.53.53:443
+0800 2024-10-06 04:06:36 INFO [286929020 0ms] inbound/tun[tun-in]: inbound connection from 172.18.0.1:39392
+0800 2024-10-06 04:06:36 INFO [286929020 0ms] inbound/tun[tun-in]: inbound connection to 59.82.34.22:443
+0800 2024-10-06 04:06:36 DEBUG [286929020 7ms] router: sniffed protocol: tls, domain: hp-cms.quark.cn
+0800 2024-10-06 04:06:36 INFO [286929020 8ms] router: failed to search process: Attempt to invoke virtual method 'byte[] java.net.InetAddress.getAddress()' on a null object reference
+0800 2024-10-06 04:06:36 DEBUG [286929020 8ms] router: match[6] rule_set=[cnip cnsite] => direct-out
+0800 2024-10-06 04:06:36 INFO [286929020 8ms] outbound/direct[direct-out]: outbound connection to hp-cms.quark.cn:443
+0800 2024-10-06 04:06:36 DEBUG [2119525423 126ms] dns: exchanged zh.m.wikipedia.org NOERROR 232
+0800 2024-10-06 04:06:36 INFO [2119525423 126ms] dns: exchanged zh.m.wikipedia.org A zh.m.wikipedia.org. 232 IN A 157.240.17.35
+0800 2024-10-06 04:06:36 INFO [2119525423 126ms] dns: exchanged zh.m.wikipedia.org OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x00e8, udp: 0 SUBNET: 1.0.1.0/32/24 PADDING: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+0800 2024-10-06 04:06:36 INFO [2453899300 144ms] router: failed to search process: android: connection owner not found
+0800 2024-10-06 04:06:36 INFO [2453899300 144ms] outbound/vless[az-sg-direct-三网直连]: outbound connection to 199.16.158.12:443
+0800 2024-10-06 04:06:36 INFO [2420884921 0ms] inbound/tun[tun-in]: inbound connection from 172.18.0.1:42782
+0800 2024-10-06 04:06:36 INFO [2420884921 0ms] inbound/tun[tun-in]: inbound connection to 157.240.17.35:443
+0800 2024-10-06 04:06:36 INFO [616630920 156ms] router: failed to search process: android: connection owner not found
+0800 2024-10-06 04:06:36 INFO [616630920 156ms] outbound/vless[az-sg-direct-三网直连]: outbound connection to 199.16.158.12:443
+0800 2024-10-06 04:06:36 INFO [1381623212 0ms] inbound/tun[tun-in]: inbound connection from 172.18.0.1:42794
+0800 2024-10-06 04:06:36 INFO [1381623212 0ms] inbound/tun[tun-in]: inbound connection to 157.240.17.35:443
+0800 2024-10-06 04:06:36 DEBUG [2420884921 40ms] router: sniffed protocol: tls, domain: zh.m.wikipedia.org
+0800 2024-10-06 04:06:36 DEBUG [1381623212 2ms] router: sniffed protocol: tls, domain: zh.m.wikipedia.org
+0800 2024-10-06 04:06:36 INFO [1381623212 2ms] router: failed to search process: Attempt to invoke virtual method 'byte[] java.net.InetAddress.getAddress()' on a null object reference
+0800 2024-10-06 04:06:36 INFO [2420884921 41ms] router: failed to search process: Attempt to invoke virtual method 'byte[] java.net.InetAddress.getAddress()' on a null object reference
+0800 2024-10-06 04:06:36 INFO [1381623212 3ms] outbound/vless[az-sg-direct-三网直连]: outbound connection to zh.m.wikipedia.org:443
+0800 2024-10-06 04:06:36 INFO [2420884921 41ms] outbound/vless[az-sg-direct-三网直连]: outbound connection to zh.m.wikipedia.org:443
+0800 2024-10-06 04:06:36 INFO [2453899300 262ms] outbound/vless[az-sg-direct-三网直连]: outbound connection to 199.16.158.12:443
+0800 2024-10-06 04:06:36 DEBUG [2453899300 263ms] inbound/tun[tun-in]: connection closed: read payload: EOF

支持我们

完整性要求

heywood2988 commented 2 weeks ago

可以尝试在设置里绕过该 App~

ZehuaMc commented 2 weeks ago

可以尝试在设置里绕过该 App~

我在singbox设置了去广告的规则,我想是singbox先把广告屏蔽了,然后软件的其他连接再全部走直连