Guest User

Untitled

a guest
Oct 21st, 2019
588
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "log": {
  3. "access": "/var/log/v2ray/access.log",
  4. "error": "/var/log/v2ray/error.log",
  5. "loglevel": "warning"
  6. },
  7. "inbound": { //理论最安全的方式 ws,有条件加上TLS
  8. "port": 20080, //开启的端口,建议实用caddy加上TLS加密
  9. "protocol": "vmess",
  10. "listen": null,
  11. "settings": {
  12. "ip": null,
  13. "udp": true,
  14. "clients": [
  15. {
  16. "alterId": 100,
  17. "security": "auto",
  18. "id": "cf390ac1-595a-4f4b-b56d-6f048f01444c"
  19. }
  20. ],
  21. "auth": null
  22. },
  23. "streamSettings": {
  24. "network": "ws", //websocket 长连接
  25. "kcpSettings": null,
  26. "wsSettings": {
  27. "connectionReuse": true,
  28. "path": "/home"
  29. },
  30. "tcpSettings": null,
  31. "tlsSettings": {},
  32. "security": ""
  33. }
  34. },
  35. "inboundDetour": [
  36. {//最轻负载方式,推荐移动设备
  37. "port": 34001,
  38. "protocol": "vmess", //vmess 协议
  39. "settings": {
  40. "clients": [
  41. {
  42. "id": "7fab440d-f1e9-419e-b7cb-ba6ba9a21374",
  43. "level": 0,
  44. "security": "auto", //自动选择(运行框架为 AMD64、ARM64 或 s390x 时为aes-128-gcm加密方式,其他情况则为 Chacha20-Poly1305 加密方式)
  45. "alterId": 64
  46. }
  47. ]
  48. },
  49. "streamSettings": {
  50. "network": "tcp" //默认tcp时,可直接省略streamSettings
  51. }
  52. },
  53. {//SS是最通用的方式,但非常容易被检测被墙,下下策
  54. "port": 34000,
  55. "protocol": "shadowsocks", // 此段为支持SS协议部分,V2ray不支持SSR
  56. "settings": {
  57. "method": "aes-256-cfb",
  58. "password": "Tanpeng123",
  59. "udp": true //是否支持UDP中转,游戏大多数需要,如SSTAP 加速游戏需要此项,
  60. }
  61. },
  62. {//游戏用,将tcp包转为udp发送,部分服务商对udp限制非常严格,可能反而不如一般tcp,mKCP不一定所有客户端都支持
  63. "port": 34006, //记得打开设置防火墙和安全组规则(如ECS需要设置)
  64. "protocol": "vmess", //vmess 协议
  65. "settings": {
  66. "clients": [
  67. {
  68. "id": "7fab440d-f1e9-419e-b7cb-ba6ba9a21373",
  69. "level": 0,
  70. "security": "auto", //自动选择(运行框架为 AMD64、ARM64 或 s390x 时为aes-128-gcm加密方式,其他情况则为 Chacha20-Poly1305 加密方式)
  71. "alterId": 64
  72. }
  73. ]
  74. },
  75. "streamSettings": {
  76. "network": "kcp" //kcp 可以加速,实际是UDP 协议
  77. }
  78. }
  79. ],
  80. "outbound": {
  81. "protocol": "freedom",
  82. "settings": {}
  83. },
  84. "outboundDetour": [
  85. {
  86. "protocol": "freedom",
  87. "settings": {}
  88. },
  89. {
  90. "protocol": "blackhole",
  91. "settings": {},
  92. "tag": "blocked"
  93. }
  94. ],
  95. "routing": {
  96. "strategy": "rules",
  97. "settings": {
  98. "rules": [
  99. {
  100. "type": "field",
  101. "ip": [
  102. "0.0.0.0/8",
  103. "10.0.0.0/8",
  104. "100.64.0.0/10",
  105. "127.0.0.0/8",
  106. "169.254.0.0/16",
  107. "172.16.0.0/12",
  108. "192.0.0.0/24",
  109. "192.0.2.0/24",
  110. "192.168.0.0/16",
  111. "198.18.0.0/15",
  112. "198.51.100.0/24",
  113. "203.0.113.0/24",
  114. "::1/128",
  115. "fc00::/7",
  116. "fe80::/10"
  117. ],
  118. "outboundTag": "blocked"
  119. }
  120. ]
  121. }
  122. }
  123. }
RAW Paste Data