NewServerConfigDynamicPort.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "inbounds": [
  6. {
  7. "tags": "TCP",
  8. "port": 10086,
  9. "protocol": "vmess",
  10. "settings": {
  11. "clients": [
  12. {
  13. "id": "换上你自己的uuid",
  14. "alterId": 64
  15. }
  16. ],
  17. "detour": {
  18. "to": "DynamicPortTCP"
  19. }
  20. },
  21. "sniffing": {
  22. "enabled": true,
  23. "destOverride": [
  24. "http",
  25. "tls"
  26. ]
  27. }
  28. },
  29. {
  30. "tag": "mKCP",
  31. "port": 10010,
  32. "protocol": "vmess",
  33. "settings": {
  34. "clients": [
  35. {
  36. "id": "换上你自己的uuid,建议别与上面那个一样",
  37. "alterId": 64
  38. }
  39. ],
  40. "detour": {
  41. "to": "DynamicPortUDP"
  42. }
  43. },
  44. "sniffing": {
  45. "enabled": true,
  46. "destOverride": [
  47. "http",
  48. "tls"
  49. ]
  50. },
  51. "streamSettings": {
  52. "network": "mkcp",
  53. "kcpSettings": {
  54. "mtu": 1350,
  55. "tti": 20,
  56. "uplinkCapacity": 100,
  57. "downlinkCapacity": 100,
  58. "congestion": true,
  59. "readBufferSize": 1,
  60. "writeBufferSize": 1,
  61. "header": {
  62. "type": "none"
  63. }
  64. }
  65. }
  66. },
  67. {
  68. "tag": "shadowsocks",
  69. "port": 10000,
  70. "protocol": "shadowsocks",
  71. "settings": {
  72. "method": "aes-128-gcm",
  73. "udp": true,
  74. "password": "建议拿一个uuid做ss协议的密码,还有,这个协议没有动态端口支持"
  75. },
  76. "sniffing": {
  77. "enabled": true,
  78. "destOverride": [
  79. "http",
  80. "tls"
  81. ]
  82. }
  83. },
  84. {
  85. "tag": "DynamicPortTCP",
  86. "protocol": "vmess",
  87. "port": "12000-13000",
  88. "settings": {
  89. "default": {
  90. "alterId": 64
  91. }
  92. },
  93. "sniffing": {
  94. "enabled": true,
  95. "destOverride": [
  96. "http",
  97. "tls"
  98. ]
  99. },
  100. "allocate": {
  101. "strategy": "random",
  102. "concurrency": 2,
  103. "refresh": 30
  104. }
  105. },
  106. {
  107. "tag": "DynamicPortUDP",
  108. "protocol": "vmess",
  109. "port": "14000-15980",
  110. "settings": {
  111. "default": {
  112. "alterId": 64
  113. }
  114. },
  115. "sniffing": {
  116. "enabled": true,
  117. "destOverride": [
  118. "http",
  119. "tls"
  120. ]
  121. },
  122. "allocate": {
  123. "strategy": "random",
  124. "concurrency": 2,
  125. "refresh": 30
  126. },
  127. "streamSettings": {
  128. "network": "kcp"
  129. }
  130. }
  131. ],
  132. "outbounds": [
  133. {
  134. "tag": "freedom",
  135. "protocol": "freedom",
  136. "settings": {}
  137. },
  138. {
  139. "tag": "blocked",
  140. "protocol": "blackhole",
  141. "settings": {},
  142. "response": {
  143. "type": "http"
  144. }
  145. }
  146. ],
  147. "routing": {
  148. "strategy": "rules",
  149. "settings": {
  150. "rules": [
  151. {
  152. "type": "field",
  153. "protocol": [
  154. "bittorrent"
  155. ],
  156. "ip": [
  157. "geoip:private"
  158. ],
  159. "domain": [
  160. "geosite:category-ads"
  161. ],
  162. "outboundTag": "blocked"
  163. }
  164. ]
  165. }
  166. }
  167. }