Advertisement
matreex

sing-box-detour

Mar 2nd, 2025 (edited)
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.84 KB | None | 0 0
  1. {
  2.   "log": {"level": "info", "timestamp": true},
  3.   "experimental": {
  4.     "clash_api": {
  5.       "external_controller": "127.0.0.1:9004"
  6.     }
  7.   },
  8.   "dns": {
  9.     "servers": [
  10.       {"tag": "𝗗𝗻𝗦𝗧𝗿𝗔𝗖", "address": "tls://8.8.8.8", "detour": "🔰 𝑻𝑨𝑲𝑬"},
  11.       {"tag": "𝗗𝗻𝗦𝗹𝗢𝗖𝗞", "address": "rcode://success"},
  12.       {"tag": "𝗗𝗻𝗦𝗧𝗮𝗻𝗧", "address": "https://1.1.1.1/dns-query", "address_resolver": "𝗗𝗻𝗦𝗛𝗢𝗦𝗧"},
  13.       {"tag": "𝗗𝗻𝗦𝗛𝗢𝗦𝗧", "address": "https://223.5.5.5/dns-query", "address_resolver": "𝗡𝗔𝗧𝗶𝗩𝗘𝗱", "detour": "🎯 𝑯𝑶𝑺𝑻"},
  14.       {"tag": "𝗡𝗔𝗧𝗶𝗩𝗘𝗱", "address": "local", "detour": "🎯 𝑯𝑶𝑺𝑻"}
  15.     ],
  16.     "rules": [
  17.       {"domain": "cp.cloudflare.com", "server": "𝗗𝗻𝗦𝗧𝗮𝗻𝗧", "rewrite_ttl": 3000},
  18.       {"outbound": "any", "server": "𝗗𝗻𝗦𝗛𝗢𝗦𝗧"},
  19.       {"clash_mode": "Global", "server": "𝗗𝗻𝗦𝗧𝗮𝗻𝗧"},
  20.       {"clash_mode": "Direct", "server": "𝗗𝗻𝗦𝗛𝗢𝗦𝗧"}
  21.     ],
  22.     "final": "𝗗𝗻𝗦𝗧𝗮𝗻𝗧",
  23.     "independent_cache": true,
  24.     "strategy": "ipv4_only"
  25.   },
  26.   "route": {
  27.     "rules": [
  28.       {"inbound": "𝑻𝑼𝑵𝒆𝒅", "action": "sniff"},
  29.       {"inbound": "𝑴𝒊𝒙𝒆𝒅", "action": "resolve", "strategy": "prefer_ipv4"},
  30.       {"inbound": "𝑴𝒊𝒙𝒆𝒅", "action": "sniff", "timeout": "1s"},
  31.       {"clash_mode": "Global", "outbound": "🔰 𝑻𝑨𝑲𝑬"},
  32.       {"clash_mode": "Direct", "outbound": "🎯 𝑯𝑶𝑺𝑻"},
  33.       {"protocol": "dns", "action": "hijack-dns"},
  34.       {"port": 853, "network": "tcp", "action": "reject"},
  35.       {"port": 443, "network": "udp", "action": "reject"}
  36.     ],
  37.     "final": "🔰 𝑻𝑨𝑲𝑬",
  38.     "auto_detect_interface": true
  39.   },
  40.   "inbounds": [
  41.     {"type": "tun", "tag": "𝑻𝑼𝑵𝒆𝒅", "mtu": 9000, "address": ["172.19.0.0/30", "fdfe:dcba:9876::/126"], "auto_route": true, "strict_route": true, "stack": "gvisor", "endpoint_independent_nat": true},
  42.     {"type": "mixed", "tag": "𝑴𝒊𝒙𝒆𝒅","listen": "::", "listen_port": 1041, "tcp_fast_open": true, "udp_fragment": true, "udp_timeout": "5m0s"}
  43.   ],
  44.   "outbounds": [
  45.     {
  46.       "type": "selector", "tag": "🔰 𝑻𝑨𝑲𝑬",
  47.       "outbounds": [
  48.         "♻️ 𝑨𝑼𝑻𝑶",
  49.         "🇯🇵 JP_01", "🇯🇵 JP_02", "🇯🇵 JP_03"
  50.       ],
  51.       "default": "♻️ 𝑨𝑼𝑻𝑶"
  52.     },
  53.     {
  54.       "type": "urltest", "tag": "♻️ 𝑨𝑼𝑻𝑶",
  55.       "outbounds": [
  56.         "🇯🇵 JP_01", "🇯🇵 JP_02", "🇯🇵 JP_03"
  57.       ],
  58.       "url": "https://www.gstatic.com/generate_204", "interval": "5m0s", "tolerance": 50, "idle_timeout": "60m", "interrupt_exist_connections": false
  59.     },
  60.     {"password": "shadowsocks", "server": "149.22.87.204", "server_port": 443, "tag": "🇯🇵 JP_01", "type": "shadowsocks", "method": "aes-128-gcm", "network": "tcp", "detour": "💨 FC"},
  61.     {"password": "shadowsocks", "server": "149.22.87.240", "server_port": 443, "tag": "🇯🇵 JP_02", "type": "shadowsocks", "method": "aes-128-gcm", "network": "tcp", "detour": "💨 FC"},
  62.     {"password": "shadowsocks", "server": "149.22.87.241", "server_port": 443, "tag": "🇯🇵 JP_03", "type": "shadowsocks", "method": "aes-128-gcm", "network": "tcp", "detour": "💨 FC"},
  63.     {"server": "a0.nttkk.com", "server_port": 443, "tag": "💨 FC", "tls": {"enabled": true, "server_name": "naypaing.pages.dev", "insecure": true, "utls": {"enabled": true, "fingerprint": "chrome"} }, "transport": {"headers": {"Host": ["naypaing.pages.dev"] }, "path": "/?ed=2048", "type": "ws"}, "type": "vless", "uuid": "b0286bc2-e17c-4c17-b0e6-d39c93f74937", "packet_encoding": "xudp"},
  64.     {"type": "direct", "tag": "🎯 𝑯𝑶𝑺𝑻"}
  65.   ]
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement