Мой актуальный конфиг для версии 1.11.4.
{
"log": {
"disabled": false,
"level": "debug",
"output": "/tmp/sing-box.log",
"timestamp": true
},
"dns": {
"strategy": "ipv4_only",
"servers": [
{
"tag": "google",
"address": "https://8.8.8.8/dns-query",
"detour": "direct"
},
{
"tag": "cloudflare",
"address": "https://1.1.1.1/dns-query",
"detour": "direct"
}
]
},
"inbounds": [
{
"type": "tun",
"interface_name": "tun0",
"domain_strategy": "ipv4_only",
"address": "172.16.250.1/30",
"auto_route": true,
"sniff": true,
"strict_route": false,
"sniff_override_destination": true
}
],
"outbounds": [
{
"domain_strategy": "prefer_ipv4",
"flow": "xtls-rprx-vision",
"packet_encoding": "xudp",
"server": "XXXXXXXXXXXXX",
"server_port": 443,
"tag": "vless-out",
"tls": {
"enabled": true,
"reality": {
"enabled": true,
"public_key": "XXXXXXXXXXXXXX",
"short_id": "XXXXXXXXX"
},
"server_name": "google.com",
"utls": {
"enabled": true,
"fingerprint": "random"
}
},
"type": "vless",
"uuid": "XXXXXXXXXXXX"
},
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"rule_set": [
"antizapret",
"discord"
],
"outbound": "vless-out"
}
],
"rule_set": [
{
"tag": "antizapret",
"type": "remote",
"format": "binary",
"url": "https://cdn.jsdelivr.net/gh/runetfreedom/russia-v2ray-rules-dat@release/sing-box/rule-set-geosite/geosite-ru-blocked.srs",
"download_detour": "vless-out",
"update_interval": "1d"
},
{
"tag": "discord",
"type": "local",
"format": "source",
"path": "/etc/sing-box/rule-set/discord.json"
}
],
"final": "direct",
"auto_detect_interface": true
}
}