From e585e4ac17690e3cd15b43eafd173e3a45fc388c Mon Sep 17 00:00:00 2001 From: hellcat Date: Tue, 11 Aug 2026 15:04:03 +0800 Subject: [PATCH] no message --- public/freenode/template/singbox.txt | 23 +--- public/freenode/template/singbox_test.txt | 140 ++++++++++++++++++++++ 2 files changed, 141 insertions(+), 22 deletions(-) create mode 100755 public/freenode/template/singbox_test.txt diff --git a/public/freenode/template/singbox.txt b/public/freenode/template/singbox.txt index 65936ca7..8c8f9d2a 100755 --- a/public/freenode/template/singbox.txt +++ b/public/freenode/template/singbox.txt @@ -47,9 +47,7 @@ { "type": "selector", "tag": "default", - "outbounds": [ - "test" - ] + "outbounds": [] }, { "type": "direct", @@ -58,25 +56,6 @@ { "type": "block", "tag": "block" - }, - { - "type": "trojan", - "tag": "test", - "server": "119.246.1.143", - "server_port": 443, - "password": "BxceQaOe", - "tls": { - "server_name": "t.me", - "insecure": true, - "utls": { - "fingerprint": "chrome", - "enabled": true - }, - "enabled": true - }, - "transport": { - "type": "http" - } } ], "route": { diff --git a/public/freenode/template/singbox_test.txt b/public/freenode/template/singbox_test.txt new file mode 100755 index 00000000..65936ca7 --- /dev/null +++ b/public/freenode/template/singbox_test.txt @@ -0,0 +1,140 @@ +{ + "log": { + "level": "error" + }, + "dns": { + "servers": [ + { + "tag": "local", + "address": "local" + } + ], + "rules": [ + { + "outbound": "any", + "server": "local" + } + ], + "final": "local", + "strategy": "prefer_ipv6" + }, + "inbounds": [ + { + "type": "tun", + "inet4_address": "172.19.0.1\/30", + "auto_route": true, + "strict_route": true, + "endpoint_independent_nat": true, + "udp_timeout": 60, + "platform": { + "http_proxy": { + "enabled": true, + "server": "127.0.0.1", + "server_port": 7891 + } + }, + "sniff": true + }, + { + "type": "mixed", + "listen": "127.0.0.1", + "listen_port": 7891, + "sniff": true, + "domain_strategy": "prefer_ipv6" + } + ], + "outbounds": [ + { + "type": "selector", + "tag": "default", + "outbounds": [ + "test" + ] + }, + { + "type": "direct", + "tag": "direct" + }, + { + "type": "block", + "tag": "block" + }, + { + "type": "trojan", + "tag": "test", + "server": "119.246.1.143", + "server_port": 443, + "password": "BxceQaOe", + "tls": { + "server_name": "t.me", + "insecure": true, + "utls": { + "fingerprint": "chrome", + "enabled": true + }, + "enabled": true + }, + "transport": { + "type": "http" + } + } + ], + "route": { + "rules": [ + { + "clash_mode": "Direct", + "outbound": "direct" + }, + { + "clash_mode": "Rule", + "outbound": "default" + }, + { + "clash_mode": "Global", + "outbound": "default" + }, + { + "protocol": "stun", + "outbound": "block" + }, + { + "ip_is_private": true, + "outbound": "direct" + }, + { + "rule_set": "geoip-cn", + "outbound": "direct" + }, + { + "rule_set": "geosite-cn", + "outbound": "direct" + } + ], + "rule_set": [ + { + "tag": "geoip-cn", + "type": "remote", + "format": "binary", + "url": "https:\/\/fastly.jsdelivr.net\/gh\/SagerNet\/sing-geoip@rule-set\/geoip-cn.srs", + "download_detour": "direct" + }, + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https:\/\/fastly.jsdelivr.net\/gh\/SagerNet\/sing-geosite@rule-set\/geosite-cn.srs", + "download_detour": "direct" + } + ], + "auto_detect_interface": true + }, + "experimental": { + "cache_file": { + "enabled": true, + "cache_id": "clashfreenode" + }, + "clash_api": { + "external_controller": "127.0.0.1:9090" + } + } +}