•
• {
• "log": {
• "disabled": false,
• "level": "warn",
• "timestamp": true
• },
• "experimental": {
• "cache_file": {
• "enabled": true,
• "path": "cache.db",
• "store_fakeip": true,
• "store_rdrc": true
• }
• },
• "dns": {
• "servers": [
• {
• "tag": "dns_proxy",
• "type": "https",
• "server": "1.1.1.1",
• "detour": "Proxy"
• },
• {
• "tag": "dns_direct",
• "type": "https",
• "server": "223.5.5.5"
• },
• {
• "tag": "dns_fakeip",
• "type": "fakeip",
• "inet4_range": "198.18.0.0/15",
• "inet6_range": "fc00::/18"
• }
• ],
• "rules": [
• {
• "clash_mode": "Direct",
• "server": "dns_direct"
• },
• {
• "clash_mode": "Global",
• "server": "dns_proxy"
• },
• {
• "rule_set": "geosite-category-ads-all",
• "action": "predefined",
• "rcode": "NOERROR",
• "answer": [
• "localhost. 60 IN A 0.0.0.0"
• ]
• },
• {
• "rule_set": "geosite-geolocation-cn",
• "server": "dns_direct"
• },
• {
• "rule_set": "geosite-geolocation-!cn",
• "query_type": [
• "A",
• "AAAA"
• ],
• "server": "dns_fakeip"
• }
• ],
• "final": "dns_proxy",
• "strategy": "ipv4_only",
• "independent_cache": true
• },
• "inbounds": [
• {
• "type": "tun",
• "tag": "tun-in",
• "address": [
• "172.18.0.1/30",
• "fdfe:dcba:9876::1/126"
• ],
• "mtu": 1400,
• "auto_route": true,
• "strict_route": true,
• "stack": "gvisor"
• }
• ],
• "outbounds": [
• {
• "type": "selector",
• "tag": "Proxy",
• "outbounds": [
• "direct-out",
• "auto"
• ],
• "default": "direct-out",
• "interrupt_exist_connections": false
• },
• {
• "type": "urltest",
• "tag": "auto",
• "outbounds": [
• "direct-out"
• ],
• "url": "https://www.gstatic.com/generate_204",
• "interval": "10m",
• "tolerance": 50,
• "interrupt_exist_connections": false
• },
• {
• "type": "direct",
• "tag": "direct-out"
• }
• ],
• "route": {
• "default_domain_resolver": {
• "server": "dns_direct"
• },
• "rules": [
• {
• "inbound": "tun-in",
• "action": "sniff"
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "port": 53
• },
• {
• "protocol": "dns"
• }
• ],
• "action": "hijack-dns"
• },
• {
• "clash_mode": "Direct",
• "outbound": "direct-out"
• },
• {
• "clash_mode": "Global",
• "outbound": "Proxy"
• },
• {
• "type": "logical",
• "mode": "and",
• "rules": [
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "domain": [
• "*.l.google.com"
• ]
• },
• {
• "domain_keyword": [
• "voice"
• ]
• },
• {
• "domain_suffix": [
• "gstatic.com",
• "googleapis.com"
• ]
• },
• {
• "ip_cidr": [
• "74.125.39.0/24",
• "74.125.250.129/32",
• "2001:4860:4864:2::/64"
• ]
• }
• ]
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "network": "udp"
• },
• {
• "protocol": "stun"
• }
• ]
• }
• ],
• "outbound": "Proxy"
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "port": 853
• },
• {
• "network": "udp",
• "port": 443
• },
• {
• "protocol": "stun"
• }
• ],
• "action": "reject",
• "method": "drop"
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "ip_is_private": true
• },
• {
• "rule_set": "geosite-geolocation-cn"
• },
• {
• "rule_set": "geoip-cn"
• }
• ],
• "outbound": "direct-out"
• }
• ],
• "final": "Proxy",
• "auto_detect_interface": true,
• "rule_set": [
• {
• "type": "remote",
• "tag": "geosite-category-ads-all",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs",
• "download_detour": "Proxy"
• },
• {
• "type": "remote",
• "tag": "geosite-geolocation-cn",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
• "download_detour": "Proxy"
• },
• {
• "type": "remote",
• "tag": "geosite-geolocation-!cn",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
• "download_detour": "Proxy"
• },
• {
• "type": "remote",
• "tag": "geoip-cn",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
• "download_detour": "Proxy"
• }
• ]
• }
• }
•
• {
• "log": {
• "disabled": false,
• "level": "warn",
• "timestamp": true
• },
• "experimental": {
• "cache_file": {
• "enabled": true,
• "path": "cache.db",
• "store_fakeip": true,
• "store_rdrc": true
• }
• },
• "dns": {
• "servers": [
• {
• "tag": "dns_proxy",
• "type": "https",
• "server": "1.1.1.1",
• "detour": "Proxy"
• },
• {
• "tag": "dns_direct",
• "type": "https",
• "server": "223.5.5.5"
• },
• {
• "tag": "dns_fakeip",
• "type": "fakeip",
• "inet4_range": "198.18.0.0/15",
• "inet6_range": "fc00::/18"
• }
• ],
• "rules": [
• {
• "clash_mode": "Direct",
• "server": "dns_direct"
• },
• {
• "clash_mode": "Global",
• "server": "dns_proxy"
• },
• {
• "rule_set": "geosite-category-ads-all",
• "action": "predefined",
• "rcode": "NOERROR",
• "answer": [
• "localhost. 60 IN A 0.0.0.0"
• ]
• },
• {
• "rule_set": "geosite-geolocation-cn",
• "server": "dns_direct"
• },
• {
• "rule_set": "geosite-geolocation-!cn",
• "query_type": [
• "A",
• "AAAA"
• ],
• "server": "dns_fakeip"
• }
• ],
• "final": "dns_proxy",
• "strategy": "ipv4_only",
• "independent_cache": true
• },
• "inbounds": [
• {
• "type": "tun",
• "tag": "tun-in",
• "address": [
• "172.18.0.1/30",
• "fdfe:dcba:9876::1/126"
• ],
• "mtu": 1400,
• "auto_route": true,
• "strict_route": true,
• "stack": "gvisor"
• }
• ],
• "outbounds": [
• {
• "type": "selector",
• "tag": "Proxy",
• "outbounds": [
• "direct-out",
• "auto"
• ],
• "default": "direct-out",
• "interrupt_exist_connections": false
• },
• {
• "type": "urltest",
• "tag": "auto",
• "outbounds": [
• "direct-out"
• ],
• "url": "https://www.gstatic.com/generate_204",
• "interval": "10m",
• "tolerance": 50,
• "interrupt_exist_connections": false
• },
• {
• "type": "direct",
• "tag": "direct-out"
• }
• ],
• "route": {
• "default_domain_resolver": {
• "server": "dns_direct"
• },
• "rules": [
• {
• "inbound": "tun-in",
• "action": "sniff"
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "port": 53
• },
• {
• "protocol": "dns"
• }
• ],
• "action": "hijack-dns"
• },
• {
• "clash_mode": "Direct",
• "outbound": "direct-out"
• },
• {
• "clash_mode": "Global",
• "outbound": "Proxy"
• },
• {
• "type": "logical",
• "mode": "and",
• "rules": [
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "domain": [
• "*.l.google.com"
• ]
• },
• {
• "domain_keyword": [
• "voice"
• ]
• },
• {
• "domain_suffix": [
• "gstatic.com",
• "googleapis.com"
• ]
• },
• {
• "ip_cidr": [
• "74.125.39.0/24",
• "74.125.250.129/32",
• "2001:4860:4864:2::/64"
• ]
• }
• ]
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "network": "udp"
• },
• {
• "protocol": "stun"
• }
• ]
• }
• ],
• "outbound": "Proxy"
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "port": 853
• },
• {
• "network": "udp",
• "port": 443
• },
• {
• "protocol": "stun"
• }
• ],
• "action": "reject",
• "method": "drop"
• },
• {
• "type": "logical",
• "mode": "or",
• "rules": [
• {
• "ip_is_private": true
• },
• {
• "rule_set": "geosite-geolocation-cn"
• },
• {
• "rule_set": "geoip-cn"
• }
• ],
• "outbound": "direct-out"
• }
• ],
• "final": "Proxy",
• "auto_detect_interface": true,
• "rule_set": [
• {
• "type": "remote",
• "tag": "geosite-category-ads-all",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs",
• "download_detour": "Proxy"
• },
• {
• "type": "remote",
• "tag": "geosite-geolocation-cn",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
• "download_detour": "Proxy"
• },
• {
• "type": "remote",
• "tag": "geosite-geolocation-!cn",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
• "download_detour": "Proxy"
• },
• {
• "type": "remote",
• "tag": "geoip-cn",
• "format": "binary",
• "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
• "download_detour": "Proxy"
• }
• ]
• }
• }
•