config_client.jsonc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "inbounds": [
  6. {
  7. "listen": "127.0.0.1",
  8. "port": "1080",
  9. "protocol": "socks",
  10. "settings": {
  11. "auth": "noauth",
  12. "udp": true,
  13. "ip": "127.0.0.1"
  14. }
  15. },
  16. {
  17. "listen": "127.0.0.1",
  18. "port": "1081",
  19. "protocol": "http"
  20. }
  21. ],
  22. "outbounds": [
  23. {
  24. "protocol": "vless",
  25. "settings": {
  26. "vnext": [
  27. {
  28. "address": "1.2.3.4",
  29. "port": 443,
  30. "user": [
  31. {
  32. "id": "",
  33. "encryption": "none",
  34. "level": 0
  35. }
  36. ]
  37. }
  38. ]
  39. },
  40. "streamSettings": {
  41. "network": "tcp",
  42. "security": "tls",
  43. "tlsSettings": {
  44. "serverName": "example.domain",
  45. "allowInsecure": false,
  46. "alpn": [
  47. "h2",
  48. "http/1.1"
  49. ],
  50. "disableSessionResumption": true
  51. }
  52. },
  53. "tag": "proxy"
  54. },
  55. {
  56. "protocol": "freedom",
  57. "tag": "direct"
  58. }
  59. ],
  60. "routing": {
  61. "domainStrategy": "AsIs",
  62. "rules": [
  63. {
  64. "type": "field",
  65. "ip": [
  66. "geoip:private"
  67. ],
  68. "tag": "direct"
  69. }
  70. ]
  71. }
  72. }