client_tcp.jsonc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "flow": "xtls-rprx-direct",
  45. "encryption": "none",
  46. "level": 0
  47. }
  48. ]
  49. }
  50. ]
  51. },
  52. "streamSettings": {
  53. "network": "tcp",
  54. "security": "xtls",
  55. "xtlsSettings": {
  56. "serverName": "reverse.example" // 换成你的域名
  57. }
  58. }
  59. },
  60. {
  61. "protocol": "freedom",
  62. "tag": "direct"
  63. }
  64. ]
  65. }