1
0

config_client.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "routing": {
  6. "domainStrategy": "IPIfNonMatch",
  7. "rules": [
  8. {
  9. "type": "field",
  10. "domain": [
  11. "geosite:cn",
  12. "geosite:private"
  13. ],
  14. "outboundTag": "direct"
  15. },
  16. {
  17. "type": "field",
  18. "ip": [
  19. "geoip:cn",
  20. "geoip:private"
  21. ],
  22. "outboundTag": "direct"
  23. }
  24. ]
  25. },
  26. "inbounds": [
  27. {
  28. "listen": "127.0.0.1", // 填 0.0.0.0 表示允许来自局域网的连接
  29. "port": 10808, // v2rayN 本地socks监听端口
  30. "protocol": "socks",
  31. "settings": {
  32. "udp": true
  33. },
  34. "sniffing": {
  35. "enabled": true,
  36. "destOverride": [
  37. "http",
  38. "tls"
  39. ]
  40. }
  41. },
  42. {
  43. "listen": "127.0.0.1", // 填 "0.0.0.0" 表示允许来自局域网的连接
  44. "port": 10809, // v2rayN 本地http监听端口
  45. "protocol": "http",
  46. "sniffing": {
  47. "enabled": true,
  48. "destOverride": [
  49. "http",
  50. "tls"
  51. ]
  52. }
  53. }
  54. ],
  55. "outbounds": [
  56. {
  57. "protocol": "vless",
  58. "settings": {
  59. "vnext": [
  60. {
  61. "address": "", // 地址,服务端的域名或IP
  62. "port": 443, // 端口,与服务端一致
  63. "users": [
  64. {
  65. "id": "", // 用户ID,与服务端一致
  66. "encryption": "none",
  67. "flow": "xtls-rprx-vision"
  68. }
  69. ]
  70. }
  71. ]
  72. },
  73. "streamSettings": {
  74. "network": "tcp",
  75. "security": "tls",
  76. "tlsSettings": {
  77. "serverName": "", // SNI,如果"address"填的是服务端的域名,可留空,如果"address"填的是服务端的IP,此处填服务端的证书中包含的域名
  78. "allowInsecure": false,
  79. "fingerprint": "chrome" // 用于配置指定 TLS Client Hello 的指纹,Xray 将通过 uTLS 库 模拟 TLS 指纹,或随机生成
  80. }
  81. },
  82. "tag": "proxy"
  83. },
  84. {
  85. "protocol": "freedom",
  86. "tag": "direct"
  87. },
  88. {
  89. "protocol": "blackhole",
  90. "tag": "block"
  91. }
  92. ]
  93. }