client_ws.jsonc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "routing": {
  6. "domainStrategy": "IPIfNonMatch",
  7. "rules": [
  8. {
  9. "type": "field",
  10. "port": "0-65535",
  11. "outboundTag": "proxy"
  12. }
  13. ]
  14. },
  15. "inbounds": [
  16. {
  17. "listen": "::1",
  18. "port": "2080",
  19. "protocol": "socks",
  20. "settings": {
  21. "auth": "noauth",
  22. "udp": true,
  23. "ip": "::1"
  24. }
  25. },
  26. {
  27. "listen": "::1",
  28. "port": "2081",
  29. "protocol": "http"
  30. }
  31. ],
  32. "outbounds": [
  33. {
  34. "tag": "proxy",
  35. "protocol": "vless",
  36. "settings": {
  37. "vnext": [
  38. {
  39. "address": "reverse.example", // 换成你的域名或服务器 IP
  40. "port": 443,
  41. "users": [
  42. {
  43. "id": "", // 填写你的 UUID
  44. "encryption": "none",
  45. "level": 0
  46. }
  47. ]
  48. }
  49. ]
  50. },
  51. "streamSettings": {
  52. "network": "ws",
  53. "security": "tls",
  54. "tlsSettings": {
  55. "serverName": "reverse.example" // 换成你的域名
  56. },
  57. "wsSettings": {
  58. "path": "/externalws" //对应 portal 中 externalws 的 path
  59. }
  60. }
  61. },
  62. {
  63. "protocol": "freedom",
  64. "tag": "direct"
  65. }
  66. ]
  67. }