v2ry_config.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. {
  2. "log": {
  3. "access": "/var/log/v2ray/access.log",
  4. "error": "/var/log/v2ray/error.log",
  5. "loglevel": "warning"
  6. },
  7. "dns": {
  8. "servers": [
  9. "8.8.8.8",
  10. "8.8.4.4",
  11. "localhost"
  12. ]
  13. },
  14. "routing": {
  15. "strategy": "rules",
  16. "settings": {
  17. "domainStrategy": "IPIfNonMatch",
  18. "rules": [
  19. {
  20. "type": "field",
  21. "ip": [
  22. "0.0.0.0/8",
  23. "10.0.0.0/8",
  24. "100.64.0.0/10",
  25. "127.0.0.0/8",
  26. "169.254.0.0/16",
  27. "172.16.0.0/12",
  28. "192.0.0.0/24",
  29. "192.0.2.0/24",
  30. "192.168.0.0/16",
  31. "198.18.0.0/15",
  32. "198.51.100.0/24",
  33. "203.0.113.0/24",
  34. "::1/128",
  35. "fc00::/7",
  36. "fe80::/10"
  37. ],
  38. "outboundTag": "blocked"
  39. },
  40. {
  41. "type": "field",
  42. "domain": [
  43. "geosite:cn"
  44. ],
  45. "ip": [
  46. "geoip:cn"
  47. ],
  48. "network": "tcp,udp",
  49. "outboundTag": "direct"
  50. },
  51. {
  52. "type": "chinaip",
  53. "outboundTag": "direct"
  54. },
  55. {
  56. "type": "chinasites",
  57. "outboundTag": "direct"
  58. }
  59. ]
  60. }
  61. },
  62. "inbounds": [
  63. {
  64. "port": 1234,
  65. "listen": "0.0.0.0",
  66. "protocol": "shadowsocks",
  67. "settings": {
  68. "method": "aes-256-gcm",
  69. "password": "123456",
  70. "level": 1,
  71. "network": "tcp,udp"
  72. },
  73. "streamSettings": {
  74. "network": "tcp"
  75. },
  76. "tag": "inbound-ss-tcp",
  77. "domainOverride": [
  78. "http",
  79. "tls"
  80. ]
  81. },
  82. {
  83. "protocol": "vmess",
  84. "port": "60001-61000",
  85. "tag": "DynamicPorts-tcp",
  86. "settings": {},
  87. "streamSettings": {
  88. "network": "tcp"
  89. },
  90. "allocate": {
  91. "strategy": "random",
  92. "concurrency": 3,
  93. "refresh": 5
  94. }
  95. },
  96. {
  97. "port": 12345,
  98. "listen": "0.0.0.0",
  99. "protocol": "vmess",
  100. "settings": {
  101. "clients": [
  102. {
  103. "id": "3cb379e2-a7ee-413c-aa53-6d84e656e793",
  104. "level": 1,
  105. "alterId": 100
  106. }
  107. ],
  108. "detour": {
  109. "to": "DynamicPorts-tcp"
  110. }
  111. },
  112. "streamSettings": {
  113. "network": "tcp"
  114. },
  115. "tag": "inbound-vmess-tcp",
  116. "domainOverride": []
  117. }
  118. ],
  119. "outbounds": [
  120. {
  121. "protocol": "vmess",
  122. "settings": {
  123. "vnext": [
  124. {
  125. "address": "国外地址",
  126. "port": 443,
  127. "users": [
  128. {
  129. "id": "3cb379e2-a7ee-413c-aa53-6d84e656e793",
  130. "alterId": 100,
  131. "security": "aes-128-gcm"
  132. }
  133. ]
  134. }
  135. ]
  136. },
  137. "streamSettings": {
  138. "network": "tcp"
  139. },
  140. "mux": {
  141. "enabled": true
  142. },
  143. "tag": "direct"
  144. },
  145. {
  146. "protocol": "blackhole",
  147. "settings": {},
  148. "tag": "blocked"
  149. },
  150. {
  151. "protocol": "freedom",
  152. "settings": {},
  153. "tag": "direct1"
  154. }
  155. ],
  156. "transport": {
  157. "tcpSettings": {
  158. "connectionReuse": true,
  159. "header": {
  160. "type": "none"
  161. }
  162. },
  163. "kcpSettings": {
  164. "mtu": 1350,
  165. "tti": 20,
  166. "uplinkCapacity": 5,
  167. "downlinkCapacity": 20,
  168. "congestion": false,
  169. "readBufferSize": 1,
  170. "writeBufferSize": 1,
  171. "header": {
  172. "type": "none"
  173. }
  174. },
  175. "wsSettings": {}
  176. }
  177. }