{ "log": { "level": "info", "timestamp": true }, "dns": { "servers": [ { "tag": "cn-dns", "detour": "direct", "address": "https://223.5.5.5/dns-query", "strategy": "ipv4_only" }, { "tag": "google", "address": "https://8.8.8.8/dns-query", "detour": "direct", "strategy": "ipv4_only" } ], "rules": [{ "rule_set": "geosite-geolocation-!cn", "server": "google" }], "final": "cn-dns", "independent_cache": true, "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "address": [ "172.19.0.1/30", "fdfe:dcba:9876::1/126" ], "auto_route": true, "strict_route": true } ], "outbounds": [ { "type": "selector", "tag": "国内", "outbounds": [ "auto-18-北京", "auto-18-广州", "auto-18-上海", "auto-18-深圳", "auto-18-苏州" ], "default": "auto-18-北京", "interrupt_exist_connections": true }, { "type": "shadowsocks", "tag": "WX-64-1", "server": "23.27.28.64", "server_port": 60128, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "shadowsocks", "tag": "WX-91-5", "server": "168.93.198.91", "server_port": 60020, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-18-北京", "outbounds": [ "WX-64-1", "WX-91-5" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "WX-64-2", "server": "23.27.28.64", "server_port": 60129, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "shadowsocks", "tag": "WX-91-3", "server": "168.93.198.91", "server_port": 60018, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-18-上海", "outbounds": [ "WX-64-2", "WX-91-3" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "WX-64-3", "server": "23.27.28.64", "server_port": 60130, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "shadowsocks", "tag": "WX-91-4", "server": "168.93.198.91", "server_port": 60019, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-18-广州", "outbounds": [ "WX-64-3", "WX-91-4" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "WX-64-4", "server": "23.27.28.64", "server_port": 60131, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "shadowsocks", "tag": "WX-91-2", "server": "168.93.198.91", "server_port": 60017, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-18-深圳", "outbounds": [ "WX-64-4", "WX-91-2" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "WX-64-5", "server": "23.27.28.64", "server_port": 60132, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "shadowsocks", "tag": "WX-91-1", "server": "168.93.198.91", "server_port": 60016, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-18-苏州", "outbounds": [ "WX-64-5", "WX-91-1" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "direct", "tag": "direct" } ], "route": { "final": "国内", "auto_detect_interface": true, "rules": [ { "action": "sniff" }, { "type": "logical", "mode": "or", "rules": [ { "protocol": "dns" }, { "port": 53 } ], "action": "hijack-dns" }, { "ip_is_private": true, "outbound": "direct" }, { "type": "logical", "mode": "or", "rules": [ { "port": 853 }, { "network": "udp", "port": 443 }, { "protocol": "stun" } ], "action": "reject" }, { "rule_set": "geosite-geolocation-!cn", "outbound": "direct" }, { "domain_keyword": [ "telegram", "tme" ], "outbound": "direct" }, { "domain_suffix": [ "t.me", "telegram.org", "telegram.me", "tdesktop.com" ], "outbound": "direct" }, { "ip_cidr": [ "91.108.4.0/22", "91.108.8.0/21", "91.108.16.0/21", "91.108.56.0/22", "149.154.160.0/20" ], "outbound": "direct" } ], "rule_set": [ { "type": "remote", "tag": "geoip-cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs" }, { "type": "remote", "tag": "geosite-geolocation-!cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs" } ] }, "experimental": { "cache_file": { "enabled": true, "store_rdrc": true } } }