client.jsonc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "log": {},
  3. "inbounds": [
  4. {
  5. "port": "1080",
  6. "protocol": "socks",
  7. "settings": {
  8. "auth": "noauth",
  9. "udp": true
  10. }
  11. },
  12. {
  13. "port": "1081",
  14. "protocol": "http",
  15. "settings": {}
  16. }
  17. ],
  18. "outbounds": [
  19. {
  20. "protocol": "vless",
  21. "settings": {
  22. "vnext": [
  23. {
  24. "address": "xx.com",
  25. "port": 443,
  26. "users": [
  27. {
  28. "id": "", //填写你的 UUID
  29. "encryption": "none"
  30. }
  31. ]
  32. }
  33. ]
  34. },
  35. "streamSettings": {
  36. "network": "grpc",
  37. "security": "tls",
  38. "grpcSettings": {
  39. "serviceName": "", //填写你的 ServiceName,不带任何斜杠
  40. "multiMode": false,
  41. //"idle_timeout": 60, //当这段时间内没有数据传输时,将会进行健康检查。可能会解决一些“断流”问题。
  42. //"initial_windows_size": 35536, //通过 Cloudflare CDN 时,防止 Cloudflare CDN 发送意外的 h2 GOAWAY 帧以关闭现有连接。
  43. //"permit_without_stream": true //通过 Cloudflare CDN 且空闲(没有子连接)时,防止 Cloudflare CDN 关闭连接。
  44. }
  45. }
  46. },
  47. {
  48. "tag": "direct",
  49. "protocol": "freedom",
  50. "settings": {}
  51. },
  52. {
  53. "tag": "blocked",
  54. "protocol": "blackhole",
  55. "settings": {}
  56. }
  57. ],
  58. "routing": {
  59. "domainStrategy": "IPOnDemand",
  60. "rules": [
  61. {
  62. "type": "field",
  63. "ip": [
  64. "geoip:private"
  65. ],
  66. "outboundTag": "direct"
  67. }
  68. ]
  69. }
  70. }