Closed BLUEBL0B closed 2 months ago
It turns out it was a bug. I'm just starting to learn how to use Singbox.
With my configuration, there are some sites, like access.smartmidea.net
and api.weathercn.com
, that aren't in the GeoSite and don't follow GeoIP.
{
"dns": {
"rules": [
{
"server": "dns_direct",
"rule_set": [
"geoip-cn",
"geosite-geolocation-cn"
]
},
{
"server": "dns_fakeip",
"query_type": [
"A",
"AAAA"
],
"rewrite_ttl": 1
}
],
"final": "dns_direct"
},
"route": {
"rules": [
{
"outbound": "route_direct",
"rule_set": [
"geoip-cn",
"geosite-geolocation-cn"
]
}
],
"final": "route_proxy"
},
"rule_set": [
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
},
{
"tag": "geosite-geolocation-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
}
]
}
I thought it was an issue on my end.
By the way, my Singbox version is1.10.0-alpha.28
This is by design. Pure domain name request does not match IP rules. Enable domain_strategy to resolve domain name to IPs.
Thanks for explaining
Operating system
Linux
System version
Ubuntu 24.04 LTS
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
-
Version
Description
The test config file contains a rule to block connections to Russian IPs, but it does not work with vk.com. This site uses Russian IP and I expect it to be blocked, but this does not happen, and the site can still be opened.
Reproduction
Here is the config file:
If sing-box is started with this config, vk.com can still be opened.
Here are my proxy settings in Firefox browser:
And here is the curl log:
Logs
Supporter
Integrity requirements