Skip to content

rate_limit ​

rate_limit limits datagrams per second of each client IP with a token bucket. Datagrams over the limit are dropped. Use it in front of dns to reduce amplification abuse.

yaml
server:
  udp:
    middlewares:
      limit:
        rate_limit:
          rate: 50
          burst: 100
FieldDefaultDescription
rateAllowed datagrams per second. Required.
burstmax(1, rate)Datagrams allowed at once.