traffic+block-iran-ip.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. "geoip:ir"
  65. ]
  66. },
  67. {
  68. "type": "field",
  69. "outboundTag": "blocked",
  70. "protocol": [
  71. "bittorrent"
  72. ]
  73. }
  74. ]
  75. },
  76. "stats": {}
  77. }