1
0

traffic+block-ads+warp.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "log": {
  3. "loglevel": "warning",
  4. "error": "./error.log"
  5. },
  6. "api": {
  7. "tag": "api",
  8. "services": [
  9. "HandlerService",
  10. "LoggerService",
  11. "StatsService"
  12. ]
  13. },
  14. "inbounds": [
  15. {
  16. "tag": "api",
  17. "listen": "127.0.0.1",
  18. "port": 62789,
  19. "protocol": "dokodemo-door",
  20. "settings": {
  21. "address": "127.0.0.1"
  22. }
  23. }
  24. ],
  25. "outbounds": [
  26. {
  27. "protocol": "freedom",
  28. "settings": {}
  29. },
  30. {
  31. "tag": "blocked",
  32. "protocol": "blackhole",
  33. "settings": {}
  34. },
  35. {
  36. "tag": "WARP",
  37. "protocol": "socks",
  38. "settings": {
  39. "servers": [
  40. {
  41. "address": "127.0.0.1",
  42. "port": 40000
  43. }
  44. ]
  45. }
  46. }
  47. ],
  48. "policy": {
  49. "levels": {
  50. "0": {
  51. "statsUserDownlink": true,
  52. "statsUserUplink": true
  53. }
  54. },
  55. "system": {
  56. "statsInboundDownlink": true,
  57. "statsInboundUplink": true
  58. }
  59. },
  60. "routing": {
  61. "domainStrategy": "IPIfNonMatch",
  62. "rules": [
  63. {
  64. "type": "field",
  65. "inboundTag": [
  66. "api"
  67. ],
  68. "outboundTag": "api"
  69. },
  70. {
  71. "type": "field",
  72. "outboundTag": "blocked",
  73. "ip": [
  74. "geoip:private"
  75. ]
  76. },
  77. {
  78. "type": "field",
  79. "outboundTag": "blocked",
  80. "protocol": [
  81. "bittorrent"
  82. ]
  83. },
  84. {
  85. "type": "field",
  86. "outboundTag": "blocked",
  87. "domain": [
  88. "geosite:category-ads-all",
  89. "ext:geosite_IR.dat:category-ads-all"
  90. ]
  91. },
  92. {
  93. "type": "field",
  94. "outboundTag": "WARP",
  95. "domain": [
  96. "geosite:spotify",
  97. "geosite:netflix",
  98. "geosite:openai",
  99. "geosite:google"
  100. ]
  101. }
  102. ]
  103. },
  104. "stats": {}
  105. }