mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 增加sing-box配置
parent
fce6e60fb2
commit
2b4833c779
|
@ -0,0 +1,392 @@
|
||||||
|
{
|
||||||
|
"log": {
|
||||||
|
"disabled": false,
|
||||||
|
"level": "info",
|
||||||
|
"timestamp": true
|
||||||
|
},
|
||||||
|
"experimental": {
|
||||||
|
"clash_api": {
|
||||||
|
"external_controller": "127.0.0.1:9090",
|
||||||
|
"external_ui": "metacubexd",
|
||||||
|
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
|
||||||
|
"external_ui_download_detour": "全局代理",
|
||||||
|
"default_mode": "rule"
|
||||||
|
},
|
||||||
|
"cache_file": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dns": {
|
||||||
|
"servers": [
|
||||||
|
{
|
||||||
|
"tag": "google",
|
||||||
|
"address": "tls://8.8.4.4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "local",
|
||||||
|
"address": "https://223.5.5.5/dns-query",
|
||||||
|
"detour": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "dns-block",
|
||||||
|
"address": "rcode://success"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"outbound": "any",
|
||||||
|
"server": "local"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"clash_mode": "Direct",
|
||||||
|
"server": "local"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"clash_mode": "Global",
|
||||||
|
"server": "google"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-cn",
|
||||||
|
"server": "local"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geoip-cn",
|
||||||
|
"server": "local"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"independent_cache": true,
|
||||||
|
"final": "google"
|
||||||
|
},
|
||||||
|
"inbounds": [
|
||||||
|
{
|
||||||
|
"type": "tun",
|
||||||
|
"tag": "tun-in",
|
||||||
|
"stack": "system",
|
||||||
|
"inet4_address": "172.19.0.1/30",
|
||||||
|
"auto_route": true,
|
||||||
|
"strict_route": true,
|
||||||
|
"sniff": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "全局代理",
|
||||||
|
"outbounds": [
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "Telegram",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "YouTube",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "netflix",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "OpenAI",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "Apple",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理",
|
||||||
|
"direct"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "Google",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "Microsoft",
|
||||||
|
"outbounds": [
|
||||||
|
"全局代理",
|
||||||
|
"direct"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "本地直连",
|
||||||
|
"outbounds": [
|
||||||
|
"direct",
|
||||||
|
"全局代理"
|
||||||
|
],
|
||||||
|
"default": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "selector",
|
||||||
|
"tag": "reject",
|
||||||
|
"outbounds": [
|
||||||
|
"block",
|
||||||
|
"direct"
|
||||||
|
],
|
||||||
|
"default": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "direct",
|
||||||
|
"type": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "block",
|
||||||
|
"type": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "dns",
|
||||||
|
"type": "dns"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"route": {
|
||||||
|
"rule_set": [
|
||||||
|
{
|
||||||
|
"tag": "geosite-category-ads-all",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/category-ads-all.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-telegram",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/telegram.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geoip-telegram",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-youtube",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/youtube.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-netflix",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/netflix.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geoip-netflix",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/netflix.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-openai@ads",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/openai@ads.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-openai",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/openai.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-apple",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/apple.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-google",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/google.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geoip-google",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/google.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-microsoft",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/microsoft.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-geolocation-!cn",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/geolocation-!cn.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-private",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/private.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geosite-cn",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geoip-private",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/private.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geoip-cn",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/cn.srs",
|
||||||
|
"download_detour": "全局代理",
|
||||||
|
"update_interval": "1d"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"clash_mode": "global",
|
||||||
|
"outbound": "全局代理"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"clash_mode": "direct",
|
||||||
|
"outbound": "本地直连"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"protocol": "dns",
|
||||||
|
"outbound": "dns"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "logical",
|
||||||
|
"mode": "or",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-category-ads-all"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"domain_regex": "^stun\\..+"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"domain_keyword": [
|
||||||
|
"stun",
|
||||||
|
"httpdns"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"protocol": "stun"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbound": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": [
|
||||||
|
"geosite-telegram",
|
||||||
|
"geoip-telegram"
|
||||||
|
],
|
||||||
|
"outbound": "Telegram"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-youtube",
|
||||||
|
"outbound": "YouTube"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": [
|
||||||
|
"geosite-netflix",
|
||||||
|
"geoip-netflix"
|
||||||
|
],
|
||||||
|
"outbound": "netflix"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-openai@ads",
|
||||||
|
"outbound": "block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-openai",
|
||||||
|
"outbound": "OpenAI"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-apple",
|
||||||
|
"outbound": "Apple"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": [
|
||||||
|
"geosite-google",
|
||||||
|
"geoip-google"
|
||||||
|
],
|
||||||
|
"outbound": "Google"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-microsoft",
|
||||||
|
"outbound": "Microsoft"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-geolocation-!cn",
|
||||||
|
"outbound": "全局代理"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": [
|
||||||
|
"geosite-private",
|
||||||
|
"geosite-cn",
|
||||||
|
"geoip-private",
|
||||||
|
"geoip-cn"
|
||||||
|
],
|
||||||
|
"outbound": "本地直连"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"final": "全局代理",
|
||||||
|
"auto_detect_interface": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue