Thanks Remi!

Solved what we need using TimedIPSetRule and some Lua.

Quick question about that. Couldn't find a way to print the contents of a
TimedIPSetRule.
print( tb:slice():toString() ) only prints the number of addresses in the
set.

Thanks aganin!


On Mon, Jun 3, 2019 at 10:02 AM Remi Gacogne <remi.gaco...@powerdns.com>
wrote:

> Hi Nico,
>
> On 6/1/19 5:39 AM, Nico wrote:
> > Hi!
> > Small question about dynamic block rules
> > there is no AND for rate limiting rules ?
> >
> > its always OR
> >
> > local dbr = dynBlockRulesGroup()
> > dbr:setQTypeRate(dnsdist.ANY, 5, 10, "Exceeded ANY rate", 60)
> > dbr:setResponseByteRate(10000, 10, "Exceeded resp BW rate", 60)
> >
> > If I want to limit TXT byte rate for example....
>
> There is indeed no way to combine rules for the dynamic blocking
> feature. You should be able to do the kind of rate-limiting you have in
> mind with regular rules, though.
>
> Best regards,
> --
> Remi Gacogne
> PowerDNS.COM BV - https://www.powerdns.com/
>
> _______________________________________________
> dnsdist mailing list
> dnsdist@mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
>
_______________________________________________
dnsdist mailing list
dnsdist@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist

Reply via email to