traffic+block-iran-domains.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. "policy": {
  38. "levels": {
  39. "0": {
  40. "statsUserDownlink": true,
  41. "statsUserUplink": true
  42. }
  43. },
  44. "system": {
  45. "statsInboundDownlink": true,
  46. "statsInboundUplink": true
  47. }
  48. },
  49. "routing": {
  50. "domainStrategy": "IPIfNonMatch",
  51. "rules": [
  52. {
  53. "type": "field",
  54. "inboundTag": [
  55. "api"
  56. ],
  57. "outboundTag": "api"
  58. },
  59. {
  60. "type": "field",
  61. "outboundTag": "blocked",
  62. "ip": [
  63. "geoip:private"
  64. ]
  65. },
  66. {
  67. "type": "field",
  68. "outboundTag": "blocked",
  69. "protocol": [
  70. "bittorrent"
  71. ]
  72. },
  73. {
  74. "type": "field",
  75. "outboundTag": "blocked",
  76. "domain": [
  77. "regexp:.*\\.ir$",
  78. "ext:iran.dat:ir",
  79. "ext:iran.dat:other",
  80. "geosite:category-ir"
  81. ]
  82. }
  83. ]
  84. },
  85. "stats": {}
  86. }