1
0

traffic+block-ads+warp.json 1.8 KB

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