config_client.jsonc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "log": {
  3. "access": "",
  4. "error": "",
  5. "loglevel": "warning"
  6. },
  7. "inbounds": [
  8. {
  9. "tag": "socks",
  10. "port": 800,
  11. "listen": "127.0.0.1",
  12. "protocol": "socks",
  13. "sniffing": {
  14. "enabled": true,
  15. "destOverride": ["http", "tls"],
  16. "routeOnly": false
  17. },
  18. "settings": {
  19. "auth": "noauth",
  20. "udp": true,
  21. "allowTransparent": false
  22. }
  23. },
  24. {
  25. "tag": "http",
  26. "port": 801,
  27. "listen": "127.0.0.1",
  28. "protocol": "http",
  29. "sniffing": {
  30. "enabled": true,
  31. "destOverride": ["http", "tls"],
  32. "routeOnly": false
  33. },
  34. "settings": {
  35. "auth": "noauth",
  36. "udp": true,
  37. "allowTransparent": false
  38. }
  39. }
  40. ],
  41. "outbounds": [
  42. {
  43. "tag": "proxy",
  44. "protocol": "vless",
  45. "settings": {
  46. "vnext": [
  47. {
  48. "address": "1.2.3.4", // Server IPv4
  49. "port": 80,
  50. "users": [
  51. {
  52. "id": "drEwvgYhS15C",
  53. "alterId": 0,
  54. "email": "[email protected]",
  55. "security": "auto",
  56. "encryption": "none",
  57. "flow": ""
  58. }
  59. ]
  60. }
  61. ]
  62. },
  63. "streamSettings": {
  64. "network": "grpc",
  65. "security": "reality",
  66. "realitySettings": {
  67. "serverName": "www.yahoo.com",
  68. "fingerprint": "chrome",
  69. "show": false,
  70. "publicKey": "OBR2JYROQB8odK5glVW_KLnsWl3UZ-voyGq_9ihQgTI",
  71. "shortId": "d49d578f280fd83a",
  72. "spiderX": ""
  73. },
  74. "grpcSettings": {
  75. "serviceName": "",
  76. "multiMode": false,
  77. "idle_timeout": 60,
  78. "health_check_timeout": 20,
  79. "permit_without_stream": false,
  80. "initial_windows_size": 0
  81. }
  82. },
  83. "mux": {
  84. "enabled": false,
  85. "concurrency": -1
  86. }
  87. },
  88. {
  89. "tag": "direct",
  90. "protocol": "freedom",
  91. "settings": {}
  92. },
  93. {
  94. "tag": "block",
  95. "protocol": "blackhole",
  96. "settings": {
  97. "response": {
  98. "type": "http"
  99. }
  100. }
  101. }
  102. ],
  103. "routing": {
  104. "domainStrategy": "AsIs",
  105. "rules": [
  106. {
  107. "type": "field",
  108. "inboundTag": ["api"],
  109. "outboundTag": "api",
  110. "enabled": true
  111. },
  112. {
  113. "id": "5708766234462982042",
  114. "type": "field",
  115. "outboundTag": "direct",
  116. "ip": ["127.0.0.1", "192.168.1.1"],
  117. "enabled": true
  118. },
  119. {
  120. "id": "4875564606963903266",
  121. "type": "field",
  122. "outboundTag": "proxy",
  123. "domain": ["dns.digitalsize.net"],
  124. "enabled": true
  125. }
  126. ]
  127. }
  128. }