{ "log": { "level": "info", "timestamp": true }, "dns": { "servers": [ { "tag": "cn-dns", "detour": "海外", "address": "https://8.8.8.8/dns-query", "strategy": "ipv4_only" } ], "rules": [], "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-新加坡1", "auto-新加坡2", "auto-新加坡3", "auto-新加坡4" ], "default": "auto-新加坡1", "interrupt_exist_connections": true }, { "type": "shadowsocks", "tag": "新加坡原生1", "server": "163.128.98.20", "server_port": 1445, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-新加坡2", "outbounds": [ "新加坡原生1" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "新加坡原生2", "server": "163.128.98.34", "server_port": 1445, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-新加坡1", "outbounds": [ "新加坡原生2" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "新加坡原生3", "server": "163.128.98.43", "server_port": 1445, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-新加坡3", "outbounds": [ "新加坡原生3" ], "url": "https://connect.rom.miui.com/generate_204", "interval": "3m", "tolerance": 50, "idle_timeout": "30m", "interrupt_exist_connections": false }, { "type": "shadowsocks", "tag": "单IP3-新加坡4", "server": "103.248.228.43", "server_port": 1445, "method": "chacha20-ietf-poly1305", "password": "QwjJSc3QqDiNZV17K2MqFQ==", "network": "tcp", "udp_over_tcp": { "enabled": true, "version": 2 } }, { "type": "urltest", "tag": "auto-新加坡4", "outbounds": [ "单IP3-新加坡4" ], "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" } ] }, "experimental": { "cache_file": { "enabled": true, "store_rdrc": true } } }