A basic, simplified list of Russian domains intended for use in XTLS/Xray/V2Ray client config.json (direct routing rule).
Based on the domain-list-community project.
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"domainMatcher": "hybrid",
"type": "field",
"domain": [ // domains to go direct
"ext:direct.dat:all"
],
"outboundTag": "direct"
}
]
}
git clone https://github.com/zimbabwe303/domain-list-ru_direct.git
cd domain-list-ru_direct
go build
./domain-list-direct
Sing-Box/NekoRay/NekoBox (and possibly also Clash.Meta) do not support .dat files directly, you have to convert it to MMDB (.db) using this tool: https://github.com/MetaCubeX/geo.git
Command line: geo convert site -i v2ray -o sing direct.dat
Rename the resulting file to geosite.db
, put it into the sing-box/nekoray executable directory and add the rules (e.g. geosite:all).
The latest versions of sing-box now recommend using their own .srs
binary rule-set format which is compiled from the human-readable .json. To convert .db to .json use the following commands:
sing-box geosite export <category>
sing-box geoip export <category>
Then you can convert .json to .srs (you can use .json directly but it is much slower than .srs):
sing-box rule-set compile <file.json>
Pre-compiled files (including the v2fly geoip.dat) can be found in the "compiled" directory. Pre-compiled files for sing-box are in the "compiled/sing-box" directory.