{ "dns": { "servers": [ { "tag": "Cloudflare-DoT", "address": "tls://1.1.1.1" }, { "tag": "Google-DoT", "address": "tls://8.8.8.8" }, { "tag": "AliDNS-DoT", "address": "tls://223.6.6.6", "detour": "direct" }, { "tag": "DNSPod-DoT", "address": "tls://120.53.53.53", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "DNSPod-DoT" }, { "rule_set": "geosite-geolocation-cn", "server": "AliDNS-DoT" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geosite-geolocation-!cn", "invert": true }, { "rule_set": "geoip-cn" } ], "server": "Cloudflare-DoT", "client_subnet": "223.5.5.5/32" } ], "final": "", "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "address": [ "172.19.0.1/30" ], "mtu": 9000, "auto_route": true, "strict_route": true, "stack": "mixed" } ], "outbounds": [ { "type": "shadowsocks", "tag": "shadowsocks-out", "detour": "shadowtls-out", "method": "2022-blake3-aes-128-gcm", "multiplex": { "enabled": true, "protocol": "h2mux", "max_connections": 4, "padding": true } }, { "type": "shadowtls", "tag": "shadowtls-out", "server": "//your vps ip or domain", "server_port": 443, "version": 3, "password": "//your shadowtls password", "tls": { "enabled": true, "server_name": "sns-video-hw.xhscdn.com", "utls": { "enabled": true, "fingerprint": "firefox" } } }, { "type": "direct", "tag": "direct" } ], "route": { "rules": [ { "action": "sniff" }, { "type": "logical", "mode": "or", "rules": [ { "port": 853 }, { "protocol": "dns" }, { "port": 53 } ], "action": "hijack-dns" }, { "type": "logical", "mode": "or", "rules": [ { "network": "udp", "port": 443 }, { "protocol": "stun" } ], "action": "reject", "method": "default", "no_drop": false }, { "rule_set": "geosite-category-ads-all", "action": "reject", "method": "default", "no_drop": false }, { "rule_set": "geosite-geolocation-cn", "action": "route", "outbound": "direct" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geoip-cn" }, { "rule_set": "geosite-geolocation-!cn", "invert": true } ], "outbound": "direct" }, { "ip_is_private": true, "action": "route", "outbound": "direct" } ], "rule_set": [ { "tag": "geosite-category-ads-all", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-category-ads-all.srs", "download_detour": "" }, { "tag": "geosite-cn", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-cn.srs", "download_detour": "" }, { "tag": "geosite-geolocation-cn", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-geolocation-cn.srs", "download_detour": "" }, { "tag": "geosite-geolocation-!cn", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/refs/heads/rule-set/geosite-geolocation-!cn.srs", "download_detour": "" }, { "tag": "geoip-cn", "type": "remote", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/refs/heads/rule-set/geoip-cn.srs", "download_detour": "" } ], "final": "" } }