Comments (7)
I've noticed this code and I wonder why it is commented.
Line 58 in 9078bc2
from sing-box.
clientservices.googleapis.com is not in geosite:cn
, but in geosite:google@cn
which not supported by sing-box.
from sing-box.
Yes, you are right. I'm using a self build rule follows Loyalsoldier's way.
https://github.com/zakuwaki/domain-list-custom/blob/ce86dcea0bea7bde64ae3dc90fd5298ec6dfae50/.github/workflows/build.yml#L45-L46
And I believe the reason is not this, because we can see rules work in this log:
Sep 04 09:54:45 ICL sing[17279]: DEBUG[0004] [3040906465] router: match[2] geosite=[private cn scholar-database] geoip=[private cn] => direct
Sep 04 09:54:45 ICL sing[17279]: INFO[0004] [3040906465] outbound/direct[direct]: outbound connection to clientservices.googleapis.com:443
I think the reason is in dns sniff like this behavior diff
# sniff
Sep 04 09:54:44 ICL sing[17279]: INFO[0004] [4225494766] inbound/shadowsocks[shadowsocks]: inbound connection to 8.8.4.4:53
Sep 04 09:54:44 ICL sing[17279]: DEBUG[0004] [4225494766] router: sniffed protocol: dns
Sep 04 09:54:44 ICL sing[17279]: DEBUG[0004] [4225494766] router: match[1] port=53 => dns
Sep 04 09:54:44 ICL sing[17279]: DEBUG[0004] [4225494766] dns: exchange clientservices.googleapis.com A INET
Sep 04 09:54:44 ICL sing[17279]: DEBUG[0004] [4225494766] dns: match[1] inbound=[socks http shadowsocks] => remote-adguard
Sep 04 09:54:45 ICL sing[17279]: DEBUG[0004] [3040906465] dns: lookup domain clientservices.googleapis.com
Sep 04 09:54:45 ICL sing[17279]: DEBUG[0004] [3040906465] dns: match[0] geosite=[private cn scholar-database] => local-adguard
Sep 04 09:54:45 ICL sing[17279]: INFO[0004] [3040906465] dns: lookup succeed for clientservices.googleapis.com: 172.217.164.99
I think that domain to be resolved is not filled in sniff so it is mismatched in this code
Line 58 in 9078bc2
from sing-box.
The role of the sniffer is to identify the protocol, and the DNS domain name is handled in another code.
from sing-box.
Try 4801b6f
from sing-box.
I have added attr support to geosite, try SagerNet/sing-geosite@50c4bf7
from sing-box.
Try 4801b6f
It works. Thank you!
I have added attr support to geosite, try SagerNet/sing-geosite@50c4bf7
Awesome, I'll have it a try.
from sing-box.
Related Issues (20)
- 大家好:sing-box 是否支持 shadowsocks-rust ?
- [Feature Request] Add DNS answers to ip/nftables set
- can't start on mac,says (packet-tunnel) error: start service: initialize inbound/tproxy[tproxy-in]
- tun接口IP地址/30使用后一位可用IP 异常 HOT 4
- "fatal error: too many callback functions" after too many box.New() instance initialized and started then closed HOT 2
- 内网、办公网环境中,支持自定义域名、IP 段跳过系统代理 HOT 4
- [Feature Request] URL Rewrite and MITM
- IP-based routing rules are not working (geoip-ru) HOT 3
- fatal error: runtime: stack split at bad time HOT 1
- 私有地址匹配路由规则错误 HOT 1
- [功能请求] 支持IPV6后缀匹配
- Fail to redirect customized url site by "domain_suffix" HOT 2
- If the tun mode is enabled for multiple nics, the cpu usage is 100%
- hysteria2 inbound doesn't get listed in android HOT 1
- 根据 IPv4 / IPv6 设置路由规则时发生崩溃
- Sing-Box Crashes Before Opening (after I added a config)
- sing-box crash
- 希望能在tun下对局域网设备实现指定出口
- Add support for Admin API
- 无法在 iOS App Store 中下载 sing-box 客户端 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sing-box.