{ "log": { "level": "warn", "timestamp": true }, "dns": { "strategy": "ipv4_only", "servers": [ { "tag": "dns-yandex", "address": "https://77.88.8.8", // Яндекс DNS "detour": "proxy-wi-fi" }, { "tag": "dns-google", "address": "https://8.8.8.8", // Google DNS "detour": "proxy-wi-fi", }, { "tag": "dns-cloudflare", "address": "https://1.1.1.1", // Cloudflare DNS "detour": "proxy-vless", "strategy": "ipv4_only" }, { "tag": "dns-germany", "address": "https://84.200.69.80", // DNS.WATCH (Германия) "detour": "proxy-vless", "strategy": "ipv4_only" }, { "tag": "local", "address": "local", "detour": "direct" }, { "tag": "block", "address": "rcode://success" } ], "rules": [ { "domain_suffix": [ ".ru", ".su", ".xn--p1ai" // это .рф ], "server": "dns-yandex" }, { "rule_set": "geoip-ru", "server": "dns-yandex" }, { "domain_keyword": ["github"], "server": "dns-google" } ], "final": "dns-cloudflare" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "interface_name": "sing-box-tun", "address": [ "172.19.0.1/30" ], "auto_route": true, "strict_route": true, "route_exclude_address": [ "10.0.0.0/8" ], "stack": "gvisor", // "mtu": 1280, "sniff": true, "sniff_timeout": "300ms", "sniff_override_destination": true // Помогает более точно определять домены } ], "outbounds": [ { "type": "dns", "tag": "dns-out" }, { "type": "direct", "tag": "proxy-wi-fi", "bind_interface": "WiFi", "domain_strategy": "ipv4_only" }, { "type": "vless", "tag": "proxy-vless", "server": "108.165.173.226", "server_port": 443, "uuid": "a9f3118f-1556-48c7-932b-3911ce1aea71", "flow": "xtls-rprx-vision", "tls": { "enabled": true, "server_name": "www.sony.com", "utls": { "enabled": true, "fingerprint": "chrome" }, "reality": { "enabled": true, "public_key": "_sv3AHU06_oGOy12BDGHbK22IsobtCcPdnHq7imCnFg", "short_id": "f200" } }, "packet_encoding": "xudp", "detour": "proxy-wi-fi", "domain_strategy": "ipv4_only" }, { "type": "direct", "tag": "direct", //"bind_interface": "Ethernet 5", "domain_strategy": "ipv4_only" } ], "route": { "rule_set": [ { "tag": "geoip-ru", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-ru.srs", "download_detour": "proxy-wi-fi" } ], "rules": [ { "protocol": "dns", "action": "hijack-dns" }, { "port": 53, "outbound": "dns-out" // Если есть dns-out в outbounds }, { "domain_suffix": [ ".ru", ".su", ".xn--p1ai" // это .рф ], "outbound": "proxy-wi-fi" }, { "rule_set": [ "geoip-ru" ], "outbound": "proxy-wi-fi" }, { "ip_cidr": ["10.0.0.0/8"], "outbound": "direct" } ], "final": "proxy-vless", "auto_detect_interface": true } }