From 010e9d1a63717ce3669375d6fba0a34e041128e7 Mon Sep 17 00:00:00 2001 From: Toperlock <861705708@qq.com> Date: Sun, 30 Jun 2024 12:50:32 +0800 Subject: [PATCH] Update config --- .../config_template_groups_rule_set_tun.json | 129 ++++++------- ...g_template_groups_rule_set_tun_fakeip.json | 178 +++++++++--------- 2 files changed, 151 insertions(+), 156 deletions(-) diff --git a/config_template/config_template_groups_rule_set_tun.json b/config_template/config_template_groups_rule_set_tun.json index 952bb6bcc..a584dcfcb 100644 --- a/config_template/config_template_groups_rule_set_tun.json +++ b/config_template/config_template_groups_rule_set_tun.json @@ -70,7 +70,7 @@ "inet4_address": "172.19.0.1/30", "mtu": 9000, "auto_route": true, - "strict_route": false, + "strict_route": true, "sniff": true, "endpoint_independent_nat": false, "stack": "system", @@ -203,7 +203,7 @@ "default": "Japan" }, { - "tag":"NETFLIX", + "tag":"Netflix", "type":"selector", "outbounds":[ "HongKong", @@ -430,6 +430,10 @@ ], "outbound": "direct" }, + { + "ip_is_private": true, + "outbound": "direct" + }, { "rule_set": "geosite-openai", "outbound": "OpenAI" @@ -451,7 +455,7 @@ "outbound": "Facebook" }, { - "rule_set": ["geoip-bilibili", "geosite-bilibili"], + "rule_set": "geosite-bilibili", "outbound": "BiliBili" }, { @@ -468,7 +472,7 @@ }, { "rule_set": ["geoip-netflix", "geosite-netflix"], - "outbound": "NETFLIX" + "outbound": "Netflix" }, { "rule_set": "geosite-disney", @@ -483,7 +487,7 @@ "outbound": "Microsoft" }, { - "rule_set": "geosite-category-games", + "rule_set": ["geosite-category-games", "geosite-dmm"], "outbound": "Games" }, { @@ -494,14 +498,6 @@ "rule_set": "geosite-geolocation-!cn", "outbound": "Global" }, - { - "rule_set": "geosite-private", - "outbound": "direct" - }, - { - "ip_is_private": true, - "outbound": "direct" - }, { "rule_set": ["geoip-cn", "geosite-cn"], "outbound": "China" @@ -509,108 +505,80 @@ ], "rule_set": [ { - "tag": "geoip-google", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/google.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": "geoip-twitter", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/twitter.srs", - "download_detour": "direct" - }, - { - "tag": "geoip-facebook", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/facebook.srs", - "download_detour": "direct" - }, - { - "tag": "geoip-netflix", + "tag": "geosite-category-ads-all", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/netflix.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", "download_detour": "direct" }, { - "tag": "geoip-apple", + "tag": "geosite-openai", "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo-lite/geoip/apple.srs", + "format": "source", + "url": "https://testingcf.jsdelivr.net/gh/Toperlock/sing-box-geosite@main/rule/OpenAI.json", "download_detour": "direct" }, { - "tag": "geoip-bilibili", + "tag": "geosite-youtube", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo-lite/geoip/bilibili.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/youtube.srs", "download_detour": "direct" }, { - "tag": "geoip-cn", + "tag": "geoip-google", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/google.srs", "download_detour": "direct" }, { - "tag": "geosite-private", + "tag": "geosite-google", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/google.srs", "download_detour": "direct" }, { - "tag": "geosite-openai", + "tag": "geosite-github", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/openai.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/github.srs", "download_detour": "direct" }, { - "tag": "geosite-youtube", + "tag": "geoip-telegram", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/youtube.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/telegram.srs", "download_detour": "direct" }, { - "tag": "geosite-google", + "tag": "geosite-telegram", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/google.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/telegram.srs", "download_detour": "direct" }, { - "tag": "geosite-github", + "tag": "geoip-twitter", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/github.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/twitter.srs", "download_detour": "direct" }, { - "tag": "geosite-telegram", + "tag": "geosite-twitter", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/telegram.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/twitter.srs", "download_detour": "direct" }, { - "tag": "geosite-twitter", + "tag": "geoip-facebook", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/twitter.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/facebook.srs", "download_detour": "direct" }, { @@ -648,6 +616,13 @@ "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/tiktok.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", @@ -662,6 +637,13 @@ "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/disney.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", @@ -690,6 +672,13 @@ "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-games.srs", "download_detour": "direct" }, + { + "tag": "geosite-dmm", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/dmm.srs", + "download_detour": "direct" + }, { "tag": "geosite-hbo", "type": "remote", @@ -705,24 +694,24 @@ "download_detour": "direct" }, { - "tag": "geosite-cn", + "tag": "geosite-geolocation-!cn", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", "download_detour": "direct" }, { - "tag": "geosite-geolocation-!cn", + "tag": "geoip-cn", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", "download_detour": "direct" }, { - "tag": "geosite-category-ads-all", + "tag": "geosite-cn", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", "download_detour": "direct" } ] diff --git a/config_template/config_template_groups_rule_set_tun_fakeip.json b/config_template/config_template_groups_rule_set_tun_fakeip.json index 687876a2a..ee2e6b6ae 100644 --- a/config_template/config_template_groups_rule_set_tun_fakeip.json +++ b/config_template/config_template_groups_rule_set_tun_fakeip.json @@ -14,7 +14,8 @@ }, "cache_file": { "enabled": true, - "store_fakeip": true + "store_fakeip": true, + "store_rdrc": true } }, "dns": { @@ -26,12 +27,11 @@ "servers": [ { "tag": "google", - "address": "https://8.8.8.8/dns-query", - "detour": "Proxy" + "address": "tls://8.8.8.8" }, { - "tag": "tx", - "address": "https://120.53.53.53/dns-query", + "tag": "local", + "address": "https://223.5.5.5/dns-query", "detour": "direct" }, { @@ -50,33 +50,49 @@ }, { "outbound": "any", - "server": "tx", - "disable_cache": true + "server": "local" }, - { - "rule_set": "geosite-cn", - "server": "tx" - }, { "clash_mode": "direct", - "server": "tx" + "server": "local" }, { "clash_mode": "global", "server": "google" }, { - "inbound": "tun", "query_type": [ "A", "AAAA" ], - "server": "fakeip", - "rewrite_ttl": 1 + "rule_set": "geosite-cn", + "server": "fakeip" }, { - "rule_set": "geosite-geolocation-!cn", - "server": "google" + "rule_set": "geosite-cn", + "server": "local" + }, + { + "type": "logical", + "mode": "and", + "rules": [ + { + "rule_set": "geosite-geolocation-!cn", + "invert": true + }, + { + "rule_set": "geoip-cn" + } + ], + "server": "google", + "client_subnet": "114.114.114.114/24" + }, + { + "query_type": [ + "A", + "AAAA" + ], + "server": "fakeip" } ], "independent_cache": true, @@ -90,6 +106,7 @@ "inet6_address": "fdfe:dcba:9876::0/126", "stack": "system", "auto_route": true, + "strict_route": true, "sniff": true, "platform": { "http_proxy": { @@ -220,7 +237,7 @@ "default": "Japan" }, { - "tag":"NETFLIX", + "tag":"Netflix", "type":"selector", "outbounds":[ "HongKong", @@ -447,6 +464,10 @@ ], "outbound": "direct" }, + { + "ip_is_private": true, + "outbound": "direct" + }, { "rule_set": "geosite-openai", "outbound": "OpenAI" @@ -468,7 +489,7 @@ "outbound": "Facebook" }, { - "rule_set": ["geoip-bilibili", "geosite-bilibili"], + "rule_set": "geosite-bilibili", "outbound": "BiliBili" }, { @@ -485,7 +506,7 @@ }, { "rule_set": ["geoip-netflix", "geosite-netflix"], - "outbound": "NETFLIX" + "outbound": "Netflix" }, { "rule_set": "geosite-disney", @@ -500,7 +521,7 @@ "outbound": "Microsoft" }, { - "rule_set": "geosite-category-games", + "rule_set": ["geosite-category-games", "geosite-dmm"], "outbound": "Games" }, { @@ -511,14 +532,6 @@ "rule_set": "geosite-geolocation-!cn", "outbound": "Global" }, - { - "rule_set": "geosite-private", - "outbound": "direct" - }, - { - "ip_is_private": true, - "outbound": "direct" - }, { "rule_set": ["geoip-cn", "geosite-cn"], "outbound": "China" @@ -526,108 +539,80 @@ ], "rule_set": [ { - "tag": "geoip-google", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/google.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": "geoip-twitter", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/twitter.srs", - "download_detour": "direct" - }, - { - "tag": "geoip-facebook", + "tag": "geosite-category-ads-all", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/facebook.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", "download_detour": "direct" }, { - "tag": "geoip-netflix", + "tag": "geosite-openai", "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/netflix.srs", + "format": "source", + "url": "https://testingcf.jsdelivr.net/gh/Toperlock/sing-box-geosite@main/rule/OpenAI.json", "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": "geoip-bilibili", + "tag": "geosite-youtube", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo-lite/geoip/bilibili.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/youtube.srs", "download_detour": "direct" }, { - "tag": "geoip-cn", + "tag": "geoip-google", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/google.srs", "download_detour": "direct" }, { - "tag": "geosite-private", + "tag": "geosite-google", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/google.srs", "download_detour": "direct" }, { - "tag": "geosite-openai", + "tag": "geosite-github", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/openai.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/github.srs", "download_detour": "direct" }, { - "tag": "geosite-youtube", + "tag": "geoip-telegram", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/youtube.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/telegram.srs", "download_detour": "direct" }, { - "tag": "geosite-google", + "tag": "geosite-telegram", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/google.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/telegram.srs", "download_detour": "direct" }, { - "tag": "geosite-github", + "tag": "geoip-twitter", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/github.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/twitter.srs", "download_detour": "direct" }, { - "tag": "geosite-telegram", + "tag": "geosite-twitter", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/telegram.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/twitter.srs", "download_detour": "direct" }, { - "tag": "geosite-twitter", + "tag": "geoip-facebook", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/twitter.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/facebook.srs", "download_detour": "direct" }, { @@ -665,6 +650,13 @@ "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/tiktok.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", @@ -679,6 +671,13 @@ "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/disney.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", @@ -707,6 +706,13 @@ "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-games.srs", "download_detour": "direct" }, + { + "tag": "geosite-dmm", + "type": "remote", + "format": "binary", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/dmm.srs", + "download_detour": "direct" + }, { "tag": "geosite-hbo", "type": "remote", @@ -722,24 +728,24 @@ "download_detour": "direct" }, { - "tag": "geosite-cn", + "tag": "geosite-geolocation-!cn", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", "download_detour": "direct" }, { - "tag": "geosite-geolocation-!cn", + "tag": "geoip-cn", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", "download_detour": "direct" }, { - "tag": "geosite-category-ads-all", + "tag": "geosite-cn", "type": "remote", "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", + "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", "download_detour": "direct" } ]