default.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. {
  2. "log": {
  3. "level": "error"
  4. },
  5. "dns": {
  6. "servers": [
  7. "1.1.1.1",
  8. "8.8.8.8"
  9. ],
  10. "hosts": {
  11. "example.com": [
  12. "192.168.0.1",
  13. "192.168.0.2"
  14. ],
  15. "server.com": [
  16. "192.168.0.3"
  17. ]
  18. }
  19. },
  20. "inbounds": [
  21. {
  22. "address": "127.0.0.1",
  23. "port": 1087,
  24. "protocol": "http"
  25. },
  26. {
  27. "address": "127.0.0.1",
  28. "port": 1086,
  29. "protocol": "socks"
  30. },
  31. {
  32. "protocol": "tun",
  33. "settings": {
  34. "name": "utun8",
  35. "address": "10.10.0.2",
  36. "netmask": "255.255.255.0",
  37. "gateway": "10.10.0.1",
  38. "mtu": 1500,
  39. "fakeDnsInclude": [
  40. "google"
  41. ]
  42. },
  43. "tag": "tun_in"
  44. }
  45. ],
  46. "outbounds": [
  47. {
  48. "protocol": "failover",
  49. "settings": {
  50. "actors": [
  51. "vmess_out",
  52. "trojan_out"
  53. ]
  54. },
  55. "tag": "failover_out"
  56. },
  57. {
  58. "protocol": "chain",
  59. "settings": {
  60. "actors": [
  61. "vmess_tls",
  62. "vmess_ws",
  63. "vmess"
  64. ]
  65. },
  66. "tag": "vmess_out"
  67. },
  68. {
  69. "protocol": "tls",
  70. "tag": "vmess_tls"
  71. },
  72. {
  73. "protocol": "ws",
  74. "settings": {
  75. "path": "/v2"
  76. },
  77. "tag": "vmess_ws"
  78. },
  79. {
  80. "protocol": "vmess",
  81. "settings": {
  82. "address": "server.com",
  83. "port": 443,
  84. "uuid": "89ee4e17-aaad-49f6-91c4-6ea5990206bd"
  85. },
  86. "tag": "vmess"
  87. },
  88. {
  89. "protocol": "chain",
  90. "settings": {
  91. "actors": [
  92. "trojan_tls",
  93. "trojan"
  94. ]
  95. },
  96. "tag": "trojan_out"
  97. },
  98. {
  99. "protocol": "tls",
  100. "tag": "trojan_tls"
  101. },
  102. {
  103. "protocol": "trojan",
  104. "settings": {
  105. "address": "server.com",
  106. "password": "112358",
  107. "port": 443
  108. },
  109. "tag": "trojan"
  110. },
  111. {
  112. "protocol": "shadowsocks",
  113. "settings": {
  114. "address": "x.x.x.x",
  115. "method": "chacha20-ietf-poly1305",
  116. "password": "123456",
  117. "port": 8389
  118. },
  119. "tag": "shadowsocks_out"
  120. },
  121. {
  122. "protocol": "socks",
  123. "settings": {
  124. "address": "x.x.x.x",
  125. "port": 1080
  126. },
  127. "tag": "socks_out"
  128. },
  129. {
  130. "protocol": "direct",
  131. "tag": "direct_out"
  132. },
  133. {
  134. "protocol": "drop",
  135. "tag": "drop_out"
  136. }
  137. ],
  138. "rules": [
  139. {
  140. "ip": [
  141. "8.8.8.8",
  142. "8.8.4.4"
  143. ],
  144. "target": "failover_out"
  145. },
  146. {
  147. "domain": [
  148. "www.google.com"
  149. ],
  150. "target": "failover_out"
  151. },
  152. {
  153. "domainSuffix": [
  154. "google.com"
  155. ],
  156. "target": "failover_out"
  157. },
  158. {
  159. "domainKeyword": [
  160. "google"
  161. ],
  162. "target": "failover_out"
  163. },
  164. {
  165. "external": [
  166. "site:cn"
  167. ],
  168. "target": "direct_out"
  169. },
  170. {
  171. "external": [
  172. "mmdb:cn"
  173. ],
  174. "target": "direct_out"
  175. }
  176. ]
  177. }