Created
March 29, 2025 15:00
config for sing-box 1.11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"level": "debug", | |
"timestamp": true | |
}, | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "overseas", | |
"address": "https://1.1.1.1/dns-query", | |
"detour": "select" | |
}, | |
{ | |
"tag": "domestic", | |
"address": "https://223.5.5.5/dns-query", | |
"address_resolver": "bootstrap", | |
"detour": "direct" | |
}, | |
{ | |
"tag": "bootstrap", | |
"address": "local", | |
"detour": "direct" | |
}, | |
{ | |
"address": "rcode://success", | |
"tag": "success" | |
} | |
], | |
"rules": [ | |
{ | |
"outbound": "any", | |
"server": "domestic", | |
"disable_cache": true | |
}, | |
{ | |
"clash_mode": "global", | |
"server": "overseas" | |
}, | |
{ | |
"clash_mode": "direct", | |
"server": "domestic" | |
}, | |
{ | |
"rule_set": "geosite-cn", | |
"server": "domestic" | |
}, | |
{ | |
"rule_set": "geosite-category-ads-all", | |
"server": "success" | |
}, | |
{ | |
"rule_set": "geosite-geolocation-!cn", | |
"server": "overseas" | |
} | |
], | |
"final": "overseas", | |
"strategy": "prefer_ipv4", | |
"independent_cache": true, | |
"fakeip": { | |
"enabled": false | |
} | |
}, | |
"inbounds": [ | |
{ | |
"type": "tun", | |
"address": ["172.19.0.1/30", "fdfe:dcba:9876::1/126"], | |
"stack": "gvisor", | |
"strict_route": true, | |
"mtu": 1500, | |
"endpoint_independent_nat": true, | |
"auto_route": true | |
}, | |
{ | |
"type": "socks", | |
"tag": "socks-in", | |
"listen": "127.0.0.1", | |
"listen_port": 2080, | |
"users": [] | |
} | |
], | |
"outbounds": [], | |
"route": { | |
"auto_detect_interface": true, | |
"final": "select", | |
"rules": [ | |
{ | |
"action": "sniff" | |
}, | |
{ | |
"action": "hijack-dns", | |
"protocol": "dns" | |
}, | |
{ | |
"network": "udp", | |
"action": "reject", | |
"port": 443 | |
}, | |
{ | |
"network": "tcp", | |
"action": "reject", | |
"port": 853 | |
}, | |
{ | |
"action": "reject", | |
"rule_set": "geosite-category-ads-all" | |
}, | |
{ | |
"outbound": "select", | |
"rule_set": "geosite-geolocation-!cn" | |
}, | |
{ | |
"outbound": "direct", | |
"rule_set": "geosite-private" | |
}, | |
{ | |
"ip_is_private": true, | |
"outbound": "direct" | |
}, | |
{ | |
"outbound": "direct", | |
"rule_set": "geoip-cn" | |
}, | |
{ | |
"outbound": "direct", | |
"rule_set": "geosite-cn" | |
}, | |
{ | |
"outbound": "direct", | |
"rule_set": "geosite-tencent" | |
} | |
], | |
"rule_set": [ | |
{ | |
"download_detour": "select", | |
"format": "binary", | |
"tag": "geosite-cn", | |
"type": "remote", | |
"url": "https://github.com/1715173329/sing-geosite/raw/refs/heads/rule-set/geosite-cn.srs" | |
}, | |
{ | |
"download_detour": "select", | |
"format": "binary", | |
"tag": "geoip-cn", | |
"type": "remote", | |
"url": "https://github.com/1715173329/sing-geoip/raw/refs/heads/rule-set/geoip-cn.srs" | |
}, | |
{ | |
"download_detour": "select", | |
"format": "binary", | |
"tag": "geosite-private", | |
"type": "remote", | |
"url": "https://github.com/1715173329/sing-geosite/raw/refs/heads/rule-set/geosite-private.srs" | |
}, | |
{ | |
"download_detour": "select", | |
"format": "binary", | |
"tag": "geosite-geolocation-!cn", | |
"type": "remote", | |
"url": "https://github.com/1715173329/sing-geosite/raw/refs/heads/rule-set/geosite-geolocation-!cn.srs" | |
}, | |
{ | |
"download_detour": "select", | |
"format": "binary", | |
"tag": "geosite-category-ads-all", | |
"type": "remote", | |
"url": "https://github.com/1715173329/sing-geosite/raw/refs/heads/rule-set/geosite-category-ads-all.srs" | |
}, | |
{ | |
"download_detour": "select", | |
"format": "binary", | |
"tag": "geosite-tencent", | |
"type": "remote", | |
"url": "https://github.com/1715173329/sing-geosite/raw/refs/heads/rule-set/geosite-tencent.srs" | |
} | |
] | |
}, | |
"experimental": { | |
"cache_file": { | |
"enabled": true, | |
"store_fakeip": false | |
}, | |
"clash_api": { | |
"default_mode": "rule", | |
"external_controller": "127.0.0.1:9090", | |
"external_ui": "ui", | |
"external_ui_download_detour": "select", | |
"external_ui_download_url": "https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip", | |
"secret": "" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment