v2ray-ws.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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": 80,
  10. "protocol": "vmess",
  11. "settings": {
  12. "clients": []
  13. },
  14. "streamSettings": {
  15. "network": "ws",
  16. "wsSettings": {
  17. "path": "/v2ray",
  18. "headers": {
  19. "Host": "xx"
  20. }
  21. },
  22. "quicSettings": {},
  23. "sockopt": {
  24. "mark": 0,
  25. "tcpFastOpen": true
  26. }
  27. },
  28. "sniffing": {
  29. "enabled": true,
  30. "destOverride": [
  31. "http",
  32. "tls"
  33. ]
  34. },
  35. "domain": "xx"
  36. }
  37. ],
  38. "outbounds": [
  39. {
  40. "protocol": "freedom",
  41. "settings": {}
  42. },
  43. {
  44. "protocol": "blackhole",
  45. "settings": {},
  46. "tag": "blocked"
  47. }
  48. ],
  49. "routing": {
  50. "rules": [
  51. {
  52. "type": "field",
  53. "ip": [
  54. "0.0.0.0/8",
  55. "10.0.0.0/8",
  56. "100.64.0.0/10",
  57. "169.254.0.0/16",
  58. "172.16.0.0/12",
  59. "192.0.0.0/24",
  60. "192.0.2.0/24",
  61. "192.168.0.0/16",
  62. "198.18.0.0/15",
  63. "198.51.100.0/24",
  64. "203.0.113.0/24",
  65. "::1/128",
  66. "fc00::/7",
  67. "fe80::/10"
  68. ],
  69. "outboundTag": "blocked"
  70. },
  71. {
  72. "type": "field",
  73. "outboundTag": "blocked",
  74. "protocol": [
  75. "bittorrent"
  76. ]
  77. }
  78. ]
  79. }
  80. }