client.jsonc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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": "ws",
  37. "security": "tls",
  38. "wsSettings": {
  39. "path": "/Path2WS?ed=2560" //?ed=2560 前面填写你的 path
  40. },
  41. "tlsSettings": {
  42. "allowInsecure": false,
  43. "serverName": "xx.com", //Equal to "SNI"
  44. "fingerprint": "chrome" //"chrome" or "firefox"
  45. }
  46. }
  47. },
  48. {
  49. "tag": "direct",
  50. "protocol": "freedom",
  51. "settings": {}
  52. },
  53. {
  54. "tag": "blocked",
  55. "protocol": "blackhole",
  56. "settings": {}
  57. }
  58. ],
  59. "routing": {
  60. "domainStrategy": "IPOnDemand",
  61. "rules": [
  62. {
  63. "type": "field",
  64. "ip": ["geoip:private"],
  65. "outboundTag": "direct"
  66. }
  67. ]
  68. }
  69. }