default.sing-box.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "log": {
  3. "disabled": false,
  4. "level": "error",
  5. "timestamp": true
  6. },
  7. "dns": {
  8. "servers": [
  9. {
  10. "tag": "default-dns",
  11. "address": "223.5.5.5",
  12. "detour": "direct"
  13. },
  14. {
  15. "tag": "system-dns",
  16. "address": "local",
  17. "detour": "direct"
  18. },
  19. {
  20. "tag": "block-dns",
  21. "address": "rcode://name_error"
  22. },
  23. {
  24. "tag": "google",
  25. "address": "https://dns.google/dns-query",
  26. "address_resolver": "default-dns",
  27. "address_strategy": "ipv4_only",
  28. "strategy": "ipv4_only",
  29. "client_subnet": "1.0.1.0"
  30. }
  31. ],
  32. "rules": [
  33. {
  34. "outbound": "any",
  35. "server": "default-dns"
  36. },
  37. {
  38. "query_type": "HTTPS",
  39. "server": "block-dns"
  40. },
  41. {
  42. "clash_mode": "direct",
  43. "server": "default-dns"
  44. },
  45. {
  46. "clash_mode": "global",
  47. "server": "google"
  48. },
  49. {
  50. "rule_set": "geosite-cn",
  51. "server": "default-dns"
  52. }
  53. ],
  54. "strategy": "ipv4_only",
  55. "disable_cache": false,
  56. "disable_expire": false,
  57. "independent_cache": false,
  58. "final": "google"
  59. },
  60. "experimental": {
  61. "cache_file": {
  62. "enabled": true,
  63. "path": "cache.db",
  64. "cache_id": "cache_db",
  65. "store_fakeip": true
  66. }
  67. },
  68. "inbounds": [
  69. {
  70. "auto_route": true,
  71. "domain_strategy": "prefer_ipv4",
  72. "endpoint_independent_nat": true,
  73. "inet4_address": "172.19.0.1/30",
  74. "mtu": 9000,
  75. "sniff": true,
  76. "sniff_override_destination": true,
  77. "stack": "system",
  78. "strict_route": true,
  79. "type": "tun"
  80. },
  81. {
  82. "domain_strategy": "prefer_ipv4",
  83. "listen": "127.0.0.1",
  84. "listen_port": 2333,
  85. "sniff": true,
  86. "sniff_override_destination": true,
  87. "tag": "socks-in",
  88. "type": "socks",
  89. "users": []
  90. },
  91. {
  92. "domain_strategy": "prefer_ipv4",
  93. "listen": "127.0.0.1",
  94. "listen_port": 2334,
  95. "sniff": true,
  96. "sniff_override_destination": true,
  97. "tag": "mixed-in",
  98. "type": "mixed",
  99. "users": []
  100. }
  101. ],
  102. "outbounds": [
  103. { "tag": "direct", "type": "direct" },
  104. { "tag": "block", "type": "block" },
  105. { "tag": "dns-out", "type": "dns" }
  106. ],
  107. "route": {
  108. "auto_detect_interface": true,
  109. "rules": [
  110. {
  111. "outbound": "dns-out",
  112. "protocol": "dns"
  113. },
  114. {
  115. "clash_mode": "direct",
  116. "outbound": "direct"
  117. },
  118. {
  119. "clash_mode": "global",
  120. "outbound": "proxy"
  121. },
  122. {
  123. "ip_is_private": true,
  124. "outbound": "direct"
  125. },
  126. {
  127. "rule_set": ["geosite-cn", "geoip-cn"],
  128. "outbound": "direct"
  129. }
  130. ],
  131. "rule_set": [
  132. {
  133. "tag": "geosite-cn",
  134. "type": "remote",
  135. "format": "binary",
  136. "url": "https://ewr1.vultrobjects.com/down/new-bucket-60f273fc/geosite-cn.srs",
  137. "download_detour": "direct"
  138. },
  139. {
  140. "tag": "geoip-cn",
  141. "type": "remote",
  142. "format": "binary",
  143. "url": "https://ewr1.vultrobjects.com/down/new-bucket-60f273fc/geoip-cn.srs",
  144. "download_detour": "direct"
  145. }
  146. ]
  147. }
  148. }