client.jsonc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "log": {},
  3. "inbounds": [
  4. {
  5. "port": "1080",
  6. "listen": "::1",
  7. "protocol": "socks",
  8. "settings": {
  9. "udp": true
  10. }
  11. }
  12. ],
  13. "outbounds": [
  14. {
  15. "protocol": "vless",
  16. "settings": {
  17. "vnext": [
  18. {
  19. "address": "example.com",
  20. "port": 443,
  21. "users": [
  22. {
  23. "id": "" //填写你的 UUID
  24. }
  25. ]
  26. }
  27. ]
  28. },
  29. "streamSettings": {
  30. "network": "xhttp",
  31. "xhttpSettings": {
  32. "path": "", //填写你的 path
  33. "mode": "stream-one", //如使用 downloadSettings(下行),不可用 stream-one;可用 stream-up。
  34. "xmux": {
  35. "maxConcurrency": 128, //Nginx 默认上限 128。https://nginx.org/en/docs/http/ngx_http_v3_module.html#http3_max_concurrent_streams
  36. "hMaxRequestTimes": 1000, //Nginx 默认上限 1000。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests
  37. "cMaxLifetimeMs": 3600000 //Nginx 默认上限 3600000ms(1h)。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time
  38. },
  39. "#downloadSettings": { //如需 H2 下行:移除前面的 #(井号)以使用 downloadSettings;上面和 server.json 的 mode 更改为 stream-up。
  40. "address": "example.com",
  41. "port": 443,
  42. "network": "xhttp",
  43. "xhttpSettings": {
  44. "path": "", //填写你的 path(同上)
  45. "xmux": {
  46. "maxConcurrency": 128, //Nginx 默认上限 128。https://nginx.org/en/docs/http/ngx_http_v3_module.html#http3_max_concurrent_streams
  47. "hMaxRequestTimes": 1000, //Nginx 默认上限 1000。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests
  48. "cMaxLifetimeMs": 3600000 //Nginx 默认上限 3600000ms(1h)。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time
  49. }
  50. },
  51. "security": "tls"
  52. }
  53. },
  54. "security": "tls",
  55. "tlsSettings": {
  56. "alpn": [
  57. "h3"
  58. ]
  59. }
  60. }
  61. },
  62. {
  63. "tag": "direct",
  64. "protocol": "freedom",
  65. "settings": {}
  66. },
  67. {
  68. "tag": "blocked",
  69. "protocol": "blackhole",
  70. "settings": {}
  71. }
  72. ],
  73. "routing": {
  74. "domainStrategy": "IPOnDemand",
  75. "rules": [
  76. {
  77. "type": "field",
  78. "ip": [
  79. "geoip:private"
  80. ],
  81. "outboundTag": "direct"
  82. }
  83. ]
  84. }
  85. }