I would like to limit the packets per second from a source IP to a destination IP.
I know that this has already been approached, but the solutions given are old and don’t work very well.
So, i would like to add a source IP to a address list if that IP passes the limit of 100K PPS to a destination IP.
I have checked this thread (http://forum.mikrotik.com/t/firewall-pps-limit/96532/1), but it dates from 2016. I guess there were some improvement since then to limit this out. no?
You can use Dst-limit matcher.
But as it performs desired action when under the limit, then applies passthrough, and that behaviour is not reversible (like with Limit matcher), you will need a custom chain for it.
You can also use a queue tree and the appropriate packet marking rules in mangle.
This provides a smoother approach (the packets exceeding limit are not immediately dropped, but they are first kept in a queue and delayed).
Yes, i know. But that will split the total of the packets.
I mean… If IP x.x.x.x send 5000 packets to ip y.y.y.y, and 5000 packets to ip z.z.z.z, and 5000 packets to a.a.a.a, another 5001 packets to ip b.b.b.b, he will match the rule (wrongly)