Facebook
From Mamad, 1 Month ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 116
  1. {
  2.   "log": {
  3.     "level": "warn",
  4.     "output": "box.log",
  5.     "timestamp": true
  6.   },
  7.   "dns": {
  8.     "servers": [
  9.       {
  10.         "tag": "dns-remote",
  11.         "address": "udp://1.1.1.1",
  12.         "address_resolver": "dns-direct"
  13.       },
  14.       {
  15.         "tag": "dns-trick-direct",
  16.         "address": "https://sky.rethinkdns.com/",
  17.         "detour": "direct-fragment"
  18.       },
  19.       {
  20.         "tag": "dns-direct",
  21.         "address": "1.1.1.1",
  22.         "address_resolver": "dns-local",
  23.         "detour": "direct"
  24.       },
  25.       {
  26.         "tag": "dns-local",
  27.         "address": "local",
  28.         "detour": "direct"
  29.       },
  30.       {
  31.         "tag": "dns-block",
  32.         "address": "rcode://success"
  33.       }
  34.     ],
  35.     "rules": [
  36.       {
  37.         "domain": "cp.cloudflare.com",
  38.         "server": "dns-remote",
  39.         "rewrite_ttl": 3000
  40.       }
  41.     ],
  42.     "final": "dns-remote",
  43.     "static_ips": {
  44.       "sky.rethinkdns.com": [
  45.         "188.114.96.3",
  46.         "188.114.97.3",
  47.         "2a06:98c1:3121::3",
  48.         "2a06:98c1:3120::3",
  49.         "104.18.202.232",
  50.         "104.18.203.232",
  51.         "188.114.97.3",
  52.         "188.114.96.3",
  53.         "2a06:98c1:3121::3",
  54.         "2a06:98c1:3120::3"
  55.       ]
  56.     },
  57.     "independent_cache": true
  58.   },
  59.   "inbounds": [
  60.     {
  61.       "type": "tun",
  62.       "tag": "tun-in",
  63.       "mtu": 9000,
  64.       "inet4_address": "172.19.0.1/28",
  65.       "auto_route": true,
  66.       "strict_route": true,
  67.       "endpoint_independent_nat": true,
  68.       "stack": "mixed",
  69.       "sniff": true,
  70.       "sniff_override_destination": true
  71.     },
  72.     {
  73.       "type": "mixed",
  74.       "tag": "mixed-in",
  75.       "listen": "127.0.0.1",
  76.       "listen_port": 2334,
  77.       "sniff": true,
  78.       "sniff_override_destination": true
  79.     },
  80.     {
  81.       "type": "direct",
  82.       "tag": "dns-in",
  83.       "listen": "127.0.0.1",
  84.       "listen_port": 6450,
  85.       "override_address": "1.1.1.1",
  86.       "override_port": 53
  87.     }
  88.   ],
  89.   "outbounds": [
  90.     {
  91.       "type": "selector",
  92.       "tag": "select",
  93.       "outbounds": [
  94.         "auto",
  95.         "Warp-IR",
  96.         "Warp-Main"
  97.       ],
  98.       "default": "auto"
  99.     },
  100.     {
  101.       "type": "urltest",
  102.       "tag": "auto",
  103.       "outbounds": [
  104.         "Warp-IR",
  105.         "Warp-Main"
  106.       ],
  107.       "url": "http://cp.cloudflare.com/",
  108.       "interval": "10m0s",
  109.       "idle_timeout": "1h40m0s"
  110.     },
  111.     {
  112.       "type": "wireguard",
  113.       "tag": "Warp-IR",
  114.       "local_address": [
  115.         "172.16.0.2/32",
  116.         "2606:4700:110:84c5:5646:95bb:9e1e:ff5d/128"
  117.       ],
  118.       "private_key": "mFYcjnGv8OIxY/cR/+RGpml1H9RcuKrMQlUgp5/Q408=",
  119.       "server": "188.114.97.21",
  120.       "server_port": 3581,
  121.       "peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
  122.       "reserved": "U3mn",
  123.       "mtu": 1280,
  124.       "fake_packets": "5-10"
  125.     },
  126.     {
  127.       "type": "wireguard",
  128.       "tag": "Warp-Main",
  129.       "detour": "Warp-IR",
  130.       "local_address": [
  131.         "172.16.0.2/32",
  132.         "2606:4700:110:882c:c6ff:1778:27fb:f2dc/128"
  133.       ],
  134.       "private_key": "4AxZ2BwE8g95xYwvOLakA4Qn/x2yFRbsoPPrYxRP2FA=",
  135.       "server": "188.114.97.21",
  136.       "server_port": 3581,
  137.       "peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
  138.       "reserved": "p44J",
  139.       "mtu": 1280,
  140.       "fake_packets": "5-10"
  141.     },
  142.     {
  143.       "type": "dns",
  144.       "tag": "dns-out"
  145.     },
  146.     {
  147.       "type": "direct",
  148.       "tag": "direct"
  149.     },
  150.     {
  151.       "type": "direct",
  152.       "tag": "direct-fragment",
  153.       "tls_fragment": {
  154.         "enabled": true,
  155.         "size": "1-500",
  156.         "sleep": "0-500"
  157.       }
  158.     },
  159.     {
  160.       "type": "direct",
  161.       "tag": "bypass"
  162.     },
  163.     {
  164.       "type": "block",
  165.       "tag": "block"
  166.     }
  167.   ],
  168.   "route": {
  169.     "geoip": {
  170.       "path": "geo-assets/sagernet-sing-geoip-geoip.db"
  171.     },
  172.     "geosite": {
  173.       "path": "geo-assets/sagernet-sing-geosite-geosite.db"
  174.     },
  175.     "rules": [
  176.       {
  177.         "inbound": "dns-in",
  178.         "outbound": "dns-out"
  179.       },
  180.       {
  181.         "port": 53,
  182.         "outbound": "dns-out"
  183.       },
  184.       {
  185.         "clash_mode": "Direct",
  186.         "outbound": "direct"
  187.       },
  188.       {
  189.         "clash_mode": "Global",
  190.         "outbound": "select"
  191.       }
  192.     ],
  193.     "final": "select",
  194.     "auto_detect_interface": true,
  195.     "override_android_vpn": true
  196.   },
  197.   "experimental": {
  198.     "cache_file": {
  199.       "enabled": true,
  200.       "path": "clash.db"
  201.     },
  202.     "clash_api": {
  203.       "external_controller": "127.0.0.1:6756",
  204.       "secret": "sgGwkb4wQhdyTRyB"
  205.     }
  206.   }
  207. }
  208.