From 575e7dbd1551917600c146d32b32a0d38d1d96cb Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 30 Sep 2025 16:01:54 +0800 Subject: [PATCH] singbox --- sing-box/1.11/Head.conf | 66 ++++++++++ sing-box/1.11/Rule.conf | 239 ++++++++++++++++++++++++++++++++++ sing-box/{ => 1.12}/Head.conf | 5 +- sing-box/{ => 1.12}/Rule.conf | 0 4 files changed, 308 insertions(+), 2 deletions(-) create mode 100644 sing-box/1.11/Head.conf create mode 100644 sing-box/1.11/Rule.conf rename sing-box/{ => 1.12}/Head.conf (94%) rename sing-box/{ => 1.12}/Rule.conf (100%) diff --git a/sing-box/1.11/Head.conf b/sing-box/1.11/Head.conf new file mode 100644 index 0000000..15d8972 --- /dev/null +++ b/sing-box/1.11/Head.conf @@ -0,0 +1,66 @@ + "log": { + "level": "error", + "timestamp": true + }, + "experimental": { + "cache_file": { + "enabled": true, + "store_rdrc": true + }, + "clash_api": { + "external_controller": "127.0.0.1:9090", + "external_ui": "ui", + "external_ui_download_url": "https://github.com/Zephyruso/zashboard/releases/latest/download/dist-no-fonts.zip", + "default_mode": "Rule" + } + }, + "dns": { + "servers": [ + { + "tag": "dns_proxy", + "address": "tls://8.8.8.8", + "detour": "Proxy" + }, + { + "tag": "dns_direct", + "address": "https://223.5.5.5/dns-query", + "detour": "Direct" + } + ], + "rules": [ + { + "rule_set": "geosite-cn", + "server": "dns_direct" + }, + { + "clash_mode": "Direct", + "server": "dns_direct" + }, + { + "clash_mode": "Proxy", + "server": "dns_proxy" + }, + { + "rule_set": "geosite-geolocation-!cn", + "server": "dns_proxy" + } + ], + "final": "dns_direct", + "strategy": "prefer_ipv4" + }, + "inbounds": [ + { + "address": ["172.18.0.1/30", "fdfe:dcba:9876::1/126"], + "auto_route": true, + "strict_route": true, + "stack": "system", + "type": "tun" + }, + { + "listen": "127.0.0.1", + "listen_port": 7890, + "tag": "mixed-in", + "type": "mixed", + "users": [] + } + ], \ No newline at end of file diff --git a/sing-box/1.11/Rule.conf b/sing-box/1.11/Rule.conf new file mode 100644 index 0000000..dcd2f72 --- /dev/null +++ b/sing-box/1.11/Rule.conf @@ -0,0 +1,239 @@ +"route": { + "auto_detect_interface": true, + "final": "Proxy", + "rules": [ + { + "action": "sniff" + }, + { + "type": "logical", + "mode": "or", + "rules": [ + { + "port": 53 + }, + { + "protocol": "dns" + } + ], + "action": "hijack-dns" + }, + { + "rule_set": "category-ads-all", + "action": "reject" + }, + { + "clash_mode": "Direct", + "outbound": "Direct" + }, + { + "clash_mode": "Proxy", + "outbound": "Proxy" + }, + { + "domain": [ + "clash.razord.top", + "yacd.metacubex.one", + "yacd.haishan.me", + "d.metacubex.one" + ], + "outbound": "Direct" + }, + { + "ip_is_private": true, + "outbound": "Direct" + }, + { + "rule_set": [ + "geoip-netflix", + "geosite-netflix" + ], + "outbound": "Netflix" + }, + { + "rule_set": "geosite-disney", + "outbound": "Disney Plus" + }, + { + "rule_set": ["geosite-youtube"], + "outbound": "YouTube" + }, + { + "rule_set": "geosite-spotify", + "outbound": "Spotify" + }, + { + "rule_set": [ + "geoip-apple", + "geosite-apple" + ], + "outbound": "Apple" + }, + { + "rule_set": [ + "geoip-telegram", + "geosite-telegram" + ], + "outbound": "Telegram" + }, + { + "rule_set": "geosite-openai", + "outbound": "AI Suite" + }, + { + "rule_set": "geosite-microsoft", + "outbound": "Microsoft" + }, + { + "rule_set": "geosite-tiktok", + "outbound": "TikTok" + }, + { + "rule_set": "geosite-private", + "outbound": "Direct" + }, + { + "ip_is_private": true, + "outbound": "Direct" + }, + { + "rule_set": [ + "geoip-cn", + "geosite-cn" + ], + "outbound": "Domestic" + }, + { + "rule_set": "geosite-geolocation-!cn", + "outbound": "Others" + } + ], + "rule_set": [ + { + "tag": "geoip-cn", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-private", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-geolocation-!cn", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", + "download_detour": "Direct" + }, + { + "tag": "category-ads-all", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", + "download_detour": "Direct" + }, + { + "tag": "geoip-netflix", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/netflix.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-netflix", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/netflix.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-disney", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/disney.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-youtube", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/youtube.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-spotify", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/spotify.srs", + "download_detour": "Direct" + }, + { + "tag": "geoip-apple", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo-lite/geoip/apple.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-apple", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/apple.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-amazon", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/amazon.srs", + "download_detour": "Direct" + }, + { + "tag": "geoip-telegram", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/telegram.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-telegram", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/telegram.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-openai", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/openai.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-microsoft", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/microsoft.srs", + "download_detour": "Direct" + }, + { + "tag": "geosite-tiktok", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/tiktok.srs", + "download_detour": "Direct" + } + ] + } \ No newline at end of file diff --git a/sing-box/Head.conf b/sing-box/1.12/Head.conf similarity index 94% rename from sing-box/Head.conf rename to sing-box/1.12/Head.conf index 2b16a17..d0b3395 100644 --- a/sing-box/Head.conf +++ b/sing-box/1.12/Head.conf @@ -4,12 +4,13 @@ }, "experimental": { "cache_file": { - "enabled": true + "enabled": true, + "store_rdrc": true }, "clash_api": { "external_controller": "127.0.0.1:9090", "external_ui": "ui", - "external_ui_download_url": "https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip", + "external_ui_download_url": "https://github.com/Zephyruso/zashboard/releases/latest/download/dist-no-fonts.zip", "default_mode": "Rule" } }, diff --git a/sing-box/Rule.conf b/sing-box/1.12/Rule.conf similarity index 100% rename from sing-box/Rule.conf rename to sing-box/1.12/Rule.conf