Все гениальное просто (c). Не додумался до такого почему-то. Спасибо.
Кстати, в приложении sing-box для Android, видимо ничего не отфильтруешь, пришлось вручную скроллить. Еще трафик приложения можно смотреть через мобильный AdGuard, что я и делал до этого, но нифига не работало.
Собрал адреса, сделал правила, иии… Все заработало без package_name. Забавно, что эти адреса и порты я до этого проверял, и ничего не работало. Видимо, до этого у меня был замудренный конфиг, и что-то мешало, наверное.
В общем, спасибо за помощь. Тему можно закрывать.
p.s: вот конфиг, если кому понадобится. Вписал все что нашел, может лишнее что-то есть, хз:
config.json
{
"log": {
"level": "warning",
"timestamp": true
},
"dns": {
"final": "cloudflare-direct",
"strategy": "ipv4_only",
"servers": [
{
"tag": "cloudflare-direct",
"address": "https://1.1.1.1/dns-query",
"detour": "direct-out"
},
{
"tag": "cloudflare-proxy",
"address": "https://1.1.1.1/dns-query",
"detour": "proxy"
}
],
"rules": [
{
"action": "route",
"server": "cloudflare-proxy",
"domain_suffix": [
"supercell.com",
"clashroyaleapp.com",
"usercentrics.eu",
"recaptcha.net",
"sentry.io",
"googleapis.com"
]
},
{
"action": "route",
"server": "cloudflare-proxy",
"port": [
9339
]
}
]
},
"inbounds": [
{
//..
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out"
},
{
"type": "vless",
"tag": "proxy"
//...
}
],
"route": {
"final": "direct-out",
"auto_detect_interface": true,
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"action": "route",
"outbound": "proxy",
"domain_suffix": [
"supercell.com",
"clashroyaleapp.com",
"usercentrics.eu",
"recaptcha.net",
"sentry.io",
"googleapis.com"
]
},
{
"action": "route",
"outbound": "proxy",
"port": [
9339
]
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}
upd: вот минимальный рабочий конфиг. По сути только порт 9339 нужен. Играть не пробовал, но сообщения о геоблоке при запуске нет, т.е в игру пускает, так что видимо и так будет работать
config2.json
{
"log": {
"level": "warning",
"timestamp": true
},
"dns": {
"final": "cloudflare-direct",
"strategy": "ipv4_only",
"servers": [
{
"tag": "cloudflare-direct",
"address": "https://1.1.1.1/dns-query",
"detour": "direct-out"
}
]
},
"inbounds": [
{
//...
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out"
},
{
"type": "vless",
"tag": "proxy",
//..
}
],
"route": {
"final": "direct-out",
"auto_detect_interface": true,
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"action": "route",
"outbound": "proxy",
"port": [
9339
]
}
]
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}