client.json 1.3 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": "ws",
  37. "security": "tls",
  38. "wsSettings": {
  39. "path": "/Path2WS?ed=2048" //?ed=2048 前面填写你的 path
  40. },
  41. "tlsSettings": {
  42. "allowInsecure": false,
  43. "serverName": "xx.com", //Equal to "SNI"
  44. "fingerprint": "chrome" //"chrome" or "firefox"
  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. }