traffic+block-ads+warp.json 1.8 KB

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