Hello,
Could you please someone explain to me how the dst-limit works exactly in the firewall rules? I have looked at the wiki and the 1 example available that I found in the forums, as well as my own attempts and I still can't figure out.
What I want is this:
I want to limit the rate at which hotspot users can send email via Yahoo. I want it to be 10/ hour and I want it to be a rolling average (as opposed to counting to 10 and blocking for a period of time). If the rolling average is more than 10/hour, the actual packet is dropped and if it is less than 10/hour, the actual packet is accepted. (I have a reliable indicator content that I watch for in the packets ... that tells me that an email is being sent ... blocking that one packet will disrupt the communication and the email is not sent)
My specific questions are the following ... and please excuse if they are silly ... I really tried hard to research this information without luck:
1, What does setting the rate to 10/h means? Packets that otherwise match the filter rule are counted and the count is divided by the time elapsed between the last and first packet .. and when that is over 10/h, the action is triggered?
2, I know that the burst means that the first X number of packets are not counted, which will mean that the action is triggered regardless of the rate for the first X packets
3, What is expire? Is that the expiration of the individual counts in point #1 above? The only sensible setting I see here should match my rate interval (1 hour), otherwise my rolling average will not be accurate-
The one thing I know is that the dst-limit doesn't work as I described above, so please someone help me clear this up.
The examples in this forum all rely on point #2 above. They get their filter rule triggered based on the number of burst packets and then after the Xth packet, they mark the source or destination and start blocking further traffic ...
If you also have suggestions how to achieve my original goal, please also let me know … I’m sure that it will benefit a lot of people.
Thanks
GL