[dnsdist] DnsDist MaxQPSIPRule

bert hubert bert.hubert at netherlabs.nl
Tue Oct 13 12:00:03 UTC 2015


On Thu, Oct 08, 2015 at 04:35:06PM +0300, Burak Ozalp wrote:
> I want to create a whitelist. If a IP address in this whitelist, I
> will not limit the queries from this IP. Basically ;
> 
> addAction(MaxQPSIPRule(5), DropAction())
> 
> rule shouldn't work for these IP's.
> 
> How can I apply this feature? For example, can we add some ip's to a
> list, and check whether the IP is in whitelist or not  ?

Make sure you add a rule first that matches those IP addresses, like this:

friends={"1.2.3.0/24", "130.161.0.0/16", "127.0.0.1", "::1"}
addAction(friends, AllowAction())
topRule() -- move this rule to the top

This functionality was added minutes ago, so you may have to wait a bit for
new packages to arrive.

Good luck!

	Bert




> 
> Best Regards
> Burak Ozalp
> 
> 
> 
> 
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/dnsdist
> 




More information about the dnsdist mailing list