From 18335cde061a8dce09e4eb463b45221c8439542e Mon Sep 17 00:00:00 2001 From: Nex Zhu Date: Mon, 16 Jun 2025 22:38:38 +0800 Subject: [PATCH] ub.json --- ub.json | 219 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 ub.json diff --git a/ub.json b/ub.json new file mode 100644 index 0000000..09efd21 --- /dev/null +++ b/ub.json @@ -0,0 +1,219 @@ +{ + "log": { + "disabled": false, + "level": "info", + "output": "", + "timestamp": false + }, + "experimental": { + "clash_api": { + "external_controller": "127.0.0.1:20123", + "external_ui": "", + "external_ui_download_url": "", + "external_ui_download_detour": "🎯 Direct", + "secret": "ID_0hgbwd4d", + "default_mode": "global", + "access_control_allow_origin": [ + "*" + ], + "access_control_allow_private_network": false + }, + "cache_file": { + "enabled": true, + "path": "cache.db", + "cache_id": "", + "store_fakeip": true, + "store_rdrc": true, + "rdrc_timeout": "7d" + } + }, + "inbounds": [ + { + "type": "mixed", + "tag": "mixed-in", + "listen": "127.0.0.1", + "listen_port": 20122, + "tcp_fast_open": false, + "tcp_multi_path": false, + "udp_fragment": false + } + ], + "outbounds": [ + { + "type": "selector", + "tag": "🚀 Select", + "interrupt_exist_connections": true, + "outbounds": [ + "🎈 Auto", + "hashigo-singbox_hysteria2" + ] + }, + { + "type": "urltest", + "tag": "🎈 Auto", + "url": "https://www.gstatic.com/generate_204", + "interval": "3m", + "tolerance": 150, + "interrupt_exist_connections": true, + "outbounds": [ + "hashigo-singbox_hysteria2" + ] + }, + { + "type": "direct", + "tag": "🎯 Direct" + }, + { + "type": "selector", + "tag": "🐟 Fallback", + "interrupt_exist_connections": true, + "outbounds": [ + "🚀 Select", + "🎯 Direct", + "hashigo-singbox_hysteria2" + ] + }, + { + "type": "selector", + "tag": "GLOBAL", + "interrupt_exist_connections": true, + "outbounds": [ + "🚀 Select", + "🎈 Auto", + "🎯 Direct", + "🐟 Fallback", + "hashigo-singbox_hysteria2" + ] + }, + { + "tag": "hashigo-singbox_hysteria2", + "type": "hysteria2", + "server": "ub.internetapi.cn", + "server_port": 21206, + "up_mbps": 150, + "down_mbps": 300, + "password": "6e973bd6-df37-4155-875f-ada547cdb1cc", + "tls": { + "enabled": true, + "server_name": "ub.internetapi.cn", + "alpn": [ + "h3" + ] + } + } + ], + "route": { + "rules": [ + { + "action": "hijack-dns", + "protocol": "dns" + }, + { + "action": "route", + "clash_mode": "direct", + "outbound": "🎯 Direct" + }, + { + "action": "route", + "clash_mode": "global", + "outbound": "GLOBAL" + }, + { + "action": "reject", + "protocol": "quic" + }, + { + "action": "reject", + "rule_set": [ + "Category-Ads" + ] + }, + { + "action": "route", + "rule_set": [ + "GeoSite-Private" + ], + "outbound": "🎯 Direct" + }, + { + "action": "route", + "rule_set": [ + "GeoSite-CN" + ], + "outbound": "🎯 Direct" + }, + { + "action": "route", + "rule_set": [ + "GeoIP-Private" + ], + "outbound": "🎯 Direct" + }, + { + "action": "route", + "rule_set": [ + "GeoIP-CN" + ], + "outbound": "🎯 Direct" + }, + { + "action": "route", + "rule_set": [ + "GeoLocation-!CN" + ], + "outbound": "🚀 Select" + } + ], + "rule_set": [ + ], + "auto_detect_interface": true, + "final": "🐟 Fallback" + }, + "dns": { + "servers": [ + { + "tag": "Local-DNS", + "address": "https://223.5.5.5:443/dns-query", + "address_resolver": "Local-DNS-Resolver", + "detour": "🎯 Direct" + }, + { + "tag": "Local-DNS-Resolver", + "address": "udp://223.5.5.5:53", + "detour": "🎯 Direct" + }, + { + "tag": "Remote-DNS", + "address": "tls://8.8.8.8:853", + "address_resolver": "Remote-DNS-Resolver", + "detour": "🚀 Select" + }, + { + "tag": "Remote-DNS-Resolver", + "address": "udp://8.8.8.8:53", + "detour": "🚀 Select" + } + ], + "rules": [ + { + "action": "route", + "server": "Local-DNS", + "outbound": "any" + }, + { + "action": "route", + "clash_mode": "direct", + "server": "Local-DNS" + }, + { + "action": "route", + "clash_mode": "global", + "server": "Remote-DNS" + } + ], + "disable_cache": false, + "disable_expire": false, + "independent_cache": false, + "final": "Remote-DNS" + } +} \ No newline at end of file