1
0

traffic+block-ads+ipv4-google.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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": "IPv4",
  34. "protocol": "freedom",
  35. "settings": {
  36. "domainStrategy": "UseIPv4"
  37. }
  38. }
  39. ],
  40. "policy": {
  41. "levels": {
  42. "0": {
  43. "statsUserDownlink": true,
  44. "statsUserUplink": true
  45. }
  46. },
  47. "system": {
  48. "statsInboundDownlink": true,
  49. "statsInboundUplink": true
  50. }
  51. },
  52. "routing": {
  53. "domainStrategy": "IPIfNonMatch",
  54. "rules": [
  55. {
  56. "type": "field",
  57. "inboundTag": ["api"],
  58. "outboundTag": "api"
  59. },
  60. {
  61. "type": "field",
  62. "outboundTag": "blocked",
  63. "ip": ["geoip:private"]
  64. },
  65. {
  66. "type": "field",
  67. "outboundTag": "blocked",
  68. "protocol": ["bittorrent"]
  69. },
  70. {
  71. "type": "field",
  72. "outboundTag": "blocked",
  73. "domain": [
  74. "geosite:category-ads-all",
  75. "geosite:category-ads",
  76. "geosite:google-ads",
  77. "geosite:spotify-ads"
  78. ]
  79. },
  80. {
  81. "type": "field",
  82. "outboundTag": "IPv4",
  83. "domain": ["geosite:google"]
  84. }
  85. ]
  86. },
  87. "stats": {}
  88. }