v2ray-ws-tls.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "log": {
  3. "access": "/var/log/v2ray/access.log",
  4. "error": "/var/log/v2ray/error.log",
  5. "loglevel": "warning"
  6. },
  7. "inbounds": [
  8. {
  9. "port": 443,
  10. "protocol": "vmess",
  11. "settings": {
  12. "clients": []
  13. },
  14. "streamSettings": {
  15. "network": "ws",
  16. "security": "tls",
  17. "tlsSettings": {
  18. "certificates": [
  19. {
  20. "certificateFile": "/aidan/v2ray/v2ray.crt",
  21. "keyFile": "/aidan/v2ray/v2ray.key"
  22. }
  23. ]
  24. },
  25. "wsSettings": {
  26. "path": "/v2ray",
  27. "headers": {
  28. "Host": "xx"
  29. }
  30. },
  31. "quicSettings": {},
  32. "sockopt": {
  33. "mark": 0,
  34. "tcpFastOpen": true
  35. }
  36. },
  37. "sniffing": {
  38. "enabled": true,
  39. "destOverride": [
  40. "http",
  41. "tls"
  42. ]
  43. },
  44. "domain": "xx"
  45. }
  46. ],
  47. "outbounds": [
  48. {
  49. "protocol": "freedom",
  50. "settings": {}
  51. },
  52. {
  53. "protocol": "blackhole",
  54. "settings": {},
  55. "tag": "blocked"
  56. }
  57. ],
  58. "routing": {
  59. "rules": [
  60. {
  61. "type": "field",
  62. "ip": [
  63. "0.0.0.0/8",
  64. "10.0.0.0/8",
  65. "100.64.0.0/10",
  66. "169.254.0.0/16",
  67. "172.16.0.0/12",
  68. "192.0.0.0/24",
  69. "192.0.2.0/24",
  70. "192.168.0.0/16",
  71. "198.18.0.0/15",
  72. "198.51.100.0/24",
  73. "203.0.113.0/24",
  74. "::1/128",
  75. "fc00::/7",
  76. "fe80::/10"
  77. ],
  78. "outboundTag": "blocked"
  79. },
  80. {
  81. "type": "field",
  82. "outboundTag": "blocked",
  83. "protocol": [
  84. "bittorrent"
  85. ]
  86. }
  87. ]
  88. }
  89. }