# Per connection limit per time interval with burst on Mikroti

**URL:** <https://forum.mikrotik.com/t/per-connection-limit-per-time-interval-with-burst-on-mikroti/64390>\
**Category:** General\
**Created:** [March 12, 2013, 2:34pm UTC](https://forum.mikrotik.com/t/per-connection-limit-per-time-interval-with-burst-on-mikroti/64390 "2013-03-12T14:34:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ditonet](https://forum.mikrotik.com/letter_avatar/ditonet/32/6_449c533f586939b6e5f246632a46421f.png) [@ditonet](https://forum.mikrotik.com/u/ditonet)\
**Post date:** [March 12, 2013, 8:44pm UTC](https://forum.mikrotik.com/t/per-connection-limit-per-time-interval-with-burst-on-mikroti/64390/6 "2013-03-12T20:44:43Z")

</div>

IMHO it should be:  
add action=jump chain=forward connection-state=new dst-port=80 jump-target=anti-ddos protocol=tcp  
add action=return chain=anti-ddos dst-limit=40/5s,70,src-and-dst-addresses/1h  
add action=drop chain=anti-ddosLine 2 allows up to 40 new connections in the interval of 5 seconds, line 3 explicitly drops packets if number of new connections is above 40/5s.  
[This post](http://forum.mikrotik.com/t/ddos-story-or-warning-use-conection-limit-with-caution/49743/1) should be also useful for you in case of DDoS attack.

> The pair src-addr/dst-addr expires in 1 hour (I don’t really understand what happens after it expires).

All counters for this particular src-addr/dst-addr pair are deleted and measurement starts from beginning.

HTH,

---

_[View the full topic](https://forum.mikrotik.com/t/per-connection-limit-per-time-interval-with-burst-on-mikroti/64390)._
