03-24-2017 03:49 AM
Hi,
I wrote a message filter using a syntax like
if (remote-ip == "10.1.4.0/22") { drop(); }
However when a message is send from 10.1.4.1, it doesn't match with this filter. Is my syntax correct. Or should I use something like:
if (remote-ip == "10.1.4-7.") etc..
Henk Fictorie
Solved! Go to Solution.
03-27-2017 06:43 AM
Ken's right. If you want to address a classless range then it has to be an entry in a HAT sender group unless it can be expressed in a REGEX, which can be messy and costly in CPU.
It's possible to have a filter (not a rule) that reacts to sender group name.
By contrast, only filters and rules can do partial matches of host names.
03-24-2017 04:08 AM
The filters aren't smart enough to interpret the ip that way. You'll have to write a regex to do it. Or just put the ip in the HAT in the BLOCKED sendergroup.
03-27-2017 01:37 AM
Thanks, I will check this.
The manual refers to the "Sender Group Syntax", which includes the CIDR notation. In a somewhat cryptic sentence you could read that only "sequences and numeric ranges of IP addresses" are supported. You could interpret it as that CIDR is not supported.
03-27-2017 06:43 AM
Ken's right. If you want to address a classless range then it has to be an entry in a HAT sender group unless it can be expressed in a REGEX, which can be messy and costly in CPU.
It's possible to have a filter (not a rule) that reacts to sender group name.
By contrast, only filters and rules can do partial matches of host names.
05-16-2017 06:24 AM
I tried several things, but finally used HAT sender groups and that worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide