emqx/examples/flapping_detect.conf.example

22 lines
689 B
Plaintext

##--------------------------------------------------------------------
## Flapping Detect
##
## Ban the client when the times of connections exceed the limit in the time window
##--------------------------------------------------------------------
## Note: This is an example of how to configure this feature
## you should copy and paste the below data into the emqx.conf for working
flapping_detect {
## use false to disabled
enable = true
## Time window for flapping detection
window_time = 1m
## Maximum number of connects allowed for a MQTT Client in window_time
max_count = 15
## How long the flapping clientid will be banned
ban_time = 5m
}