[dnsdist] dnsdist: use netmaskGroup with DynBlockRules exclude/includeRange

denis.machard at orange.com denis.machard at orange.com
Tue Jul 27 13:38:08 UTC 2021


Hi all,

I am trying to use a netmaskgroup object in my DynBlockRulesGroup object with the function "includeRange"
as introduced with the version 1.6.0

My config:

nmg_internal = newNMG()
nmg_internal:addMask("10.0.0.0/8")

local dbr = dynBlockRulesGroup()
dbr:includeRange(nmg_internal)
dbr:setQueryRate(30, 10, "Exceeded query rate", 60)

function maintenance()
  dbr:apply()
end


The error I am getting:

Fatal Lua error: [string "chunk"]:40: Unable to convert parameter from nil to 12NetmaskGroup
stack traceback:
        [C]: in function 'NetmaskGroupRule'
        [string "chunk"]:40: in main chunk


I am using the following version

# dnsdist --version
dnsdist 1.6.0 (Lua 5.1.4 [LuaJIT 2.0.4])
Enabled features: cdb dns-over-tls(gnutls openssl) dns-over-https(DOH) dnscrypt fstrm ipcipher libsodium lmdb protobuf re2 recvmmsg/sendmmsg snmp systemd

I can't find what I'm doing wrong, do you have any idea?

denis

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20210727/157615bb/attachment.htm>


More information about the dnsdist mailing list