OK, thank you. But, should i use accept or drop with dst-limit? I have read documentation, but i don't understand how to use dst-limit at all.dst-limit is used to limit pps, more information at the documentation.
You need to add accept rules for 80, 443, 53, then add rule with dst-limit to limit pps.
You don't mean dropped, you mean allowed to go to the next rule in the firewall chain. You have to make sure that you disallow the remaining packets in another rule.then 10 packets per second will be accepted and all the rest will be dropped
So, you mean that it will not work for other protocols and ports than icmp? or will be working but with buggy setting, for instance "if you set ...100 to 10000 = 100" ?currently do not use pps for anything other but icmp and limiting packets to max value of 10 pps
no, it will work fine, but you will have to use that conversion table janisk pasted below. if you want to limit it to 24pps, you have to use the number 33 instead. also this means that you can't set it to anything higher than 100, as it will treat it as 'unlimited'So, you mean that it will not work for other protocols and ports than icmp? or will be working but with buggy setting, for instance "if you set ...100 to 10000 = 100" ?currently do not use pps for anything other but icmp and limiting packets to max value of 10 pps
But it should work with UDP, usefull with some p2p applications, for instance.to clear things up - it will work with any protocol
but mainly this feature was intended for ICMP protocol, because using this on tcp is close to nonsense, why - IMO because tcp will retransmit the packet and your infrastructure will be loaded anyway
I have been trying to understand "limit" and "dst-limit", and they were not working normally. After I found this post, now I understand. But I'm using 5.15 and apparently they are not yet fixed? Results below:currently do not use pps for anything other but icmp and limiting packets to max value of 10 pps
this is a bug, that values greater than that will not be accurate
if you set 33,0 pps then you will get 24 as a result
34 to 49 pps will give you 33 pps
50 to 99 = 50
100 to 10000 = 100
10001 to .. = no limits
this is a result of a minor settings bug, which is known, and is being fixed. after that you will be able to use specific settings
When it will be fixed? We are waiting, because we need this feature.you can't limit it to anything more than 100pps, which is useless for UDP or anything other than ICMP. Please wait until this is fixed, then you will be able to use it
In version 6.43.12 still not resolve.
This would be a good function to able to control the device under DDOS attacks on conntrack table.
(I need to control 900kpps on CCR1036)