Forked from CHIZI-0618/sing-box-sub-store-template_tproxy.json
Last active
February 10, 2025 04:23
-
-
Save kewei1008/123dca6e5f2cf5cdb6728bd4f16e7b80 to your computer and use it in GitHub Desktop.
sing-box v1.11.1 Sub-Store-Template TProxy
This file contains 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": { | |
"disabled": false, | |
"level": "error", | |
"output": "box.log", | |
"timestamp": true | |
}, | |
"experimental": { | |
"cache_file": { | |
"enabled": true, | |
"store_fakeip": true | |
}, | |
"clash_api": { | |
"default_mode": "Rule", | |
"external_controller": "127.0.0.1:9090", | |
"secret": "", | |
"external_ui": "dashboard" | |
} | |
}, | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "cloudflare", | |
"address": "https://1.1.1.1/dns-query", | |
"detour": "Proxy" | |
}, | |
{ | |
"tag": "ali", | |
"address": "https://223.6.6.6/dns-query", | |
"detour": "direct" | |
}, | |
{ | |
"tag": "remote", | |
"address": "fakeip" | |
}, | |
{ | |
"tag": "block", | |
"address": "rcode://success" | |
} | |
], | |
"rules": [ | |
{ | |
"outbound": "any", | |
"server": "ali" | |
}, | |
{ | |
"clash_mode": "Direct", | |
"action": "route", | |
"server": "ali" | |
}, | |
{ | |
"rule_set": [ | |
"direct", | |
"alibaba", | |
"category-games@cn" | |
], | |
"action": "route", | |
"server": "ali" | |
}, | |
{ | |
"rule_set": [ | |
"proxy" | |
], | |
"action": "route", | |
"server": "cloudflare" | |
}, | |
{ | |
"type": "logical", | |
"mode": "and", | |
"rules": [ | |
{ | |
"clash_mode": "AllowAds", | |
"invert": true | |
}, | |
{ | |
"rule_set": [ | |
"block", | |
"AWAvenue-Ads", | |
"category-ads-all" | |
] | |
} | |
], | |
"action": "route-options", | |
"server": "block", | |
"disable_cache": true | |
}, | |
{ | |
"rule_set": [ | |
"cn-domain" | |
], | |
"action": "route", | |
"server": "ali" | |
}, | |
{ | |
"query_type": [ | |
"A", | |
"AAAA" | |
], | |
"action": "route", | |
"server": "remote" | |
} | |
], | |
"fakeip": { | |
"enabled": true, | |
"inet4_range": "198.18.0.0/15", | |
"inet6_range": "fc00::/18" | |
}, | |
"independent_cache": true, | |
"strategy": "prefer_ipv4" | |
}, | |
"inbounds": [ | |
{ | |
"type": "mixed", | |
"tag": "mixed", | |
"listen": "::", | |
"listen_port": 7080, | |
"set_system_proxy": false | |
}, | |
{ | |
"type": "tproxy", | |
"tag": "tproxy", | |
"listen": "::", | |
"listen_port": 9898 | |
} | |
], | |
"outbounds": [ | |
{ | |
"tag": "direct", | |
"type": "direct" | |
}, | |
{ | |
"tag": "Proxy", | |
"type": "selector", | |
"outbounds": [ | |
"direct" | |
], | |
"default": "direct", | |
"interrupt_exist_connections": true | |
} | |
], | |
"route": { | |
"rule_set": [ | |
{ | |
"tag": "block", | |
"type": "local", | |
"format": "source", | |
"path": "./source/block.json" | |
}, | |
{ | |
"tag": "direct", | |
"type": "local", | |
"format": "source", | |
"path": "./source/direct.json" | |
}, | |
{ | |
"tag": "proxy", | |
"type": "local", | |
"format": "source", | |
"path": "./source/proxy.json" | |
}, | |
{ | |
"tag": "AWAvenue-Ads", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main/Filters/AWAvenue-Ads-Rule-Singbox.srs", | |
"download_detour": "Proxy", | |
"update_interval": "24h" | |
}, | |
{ | |
"tag": "category-ads-all", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/CHIZI-0618/v2ray-rules-dat/release/singbox_rule_set/geosite-category-ads-all.srs", | |
"download_detour": "Proxy", | |
"update_interval": "24h" | |
}, | |
{ | |
"tag": "alibaba", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-alibaba.srs", | |
"download_detour": "Proxy", | |
"update_interval": "24h" | |
}, | |
{ | |
"tag": "category-games@cn", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-games@cn.srs", | |
"download_detour": "Proxy", | |
"update_interval": "24h" | |
}, | |
{ | |
"tag": "geolocation-!cn", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/CHIZI-0618/v2ray-rules-dat/release/singbox_rule_set/geosite-geolocation-!cn.srs", | |
"download_detour": "Proxy", | |
"update_interval": "24h" | |
}, | |
{ | |
"tag": "cn-domain", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/CHIZI-0618/v2ray-rules-dat/release/singbox_rule_set/geosite-cn.srs", | |
"download_detour": "Proxy", | |
"update_interval": "24h" | |
}, | |
{ | |
"tag": "cn-ip", | |
"type": "remote", | |
"format": "binary", | |
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/cn.srs", | |
"download_detour": "Proxy", | |
"update_interval": "10d" | |
} | |
], | |
"rules": [ | |
{ | |
"action": "sniff" | |
}, | |
{ | |
"type": "logical", | |
"mode": "or", | |
"rules": [ | |
{ | |
"port": 53 | |
}, | |
{ | |
"protocol": "dns" | |
} | |
], | |
"action": "hijack-dns" | |
}, | |
{ | |
"clash_mode": "Direct", | |
"action": "route", | |
"outbound": "direct" | |
}, | |
{ | |
"rule_set": [ | |
"direct", | |
"alibaba", | |
"category-games@cn" | |
], | |
"action": "route", | |
"outbound": "direct" | |
}, | |
{ | |
"rule_set": [ | |
"proxy" | |
], | |
"action": "route", | |
"outbound": "Proxy" | |
}, | |
{ | |
"type": "logical", | |
"mode": "and", | |
"rules": [ | |
{ | |
"clash_mode": "AllowAds", | |
"invert": true | |
}, | |
{ | |
"rule_set": [ | |
"block", | |
"AWAvenue-Ads", | |
"category-ads-all" | |
] | |
} | |
], | |
"action": "reject" | |
}, | |
{ | |
"rule_set": [ | |
"cn-domain" | |
], | |
"action": "route", | |
"outbound": "direct" | |
}, | |
{ | |
"rule_set": "cn-ip", | |
"action": "route", | |
"outbound": "direct" | |
}, | |
{ | |
"ip_is_private": true, | |
"outbound": "direct" | |
} | |
], | |
"find_process": true, | |
"final": "Proxy" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment