On Thu, 23 Dec 2010, Keith De Souza wrote:

Hi,

I've got an SA rule that will whitelist and IP address:

========
header IP_WL Received=~ /\[212.74.114.16\]/
score IP_WL -99
describe IP_WL Allows relays from 212.74.114.16
========

How to I modify this so that it is for a range of IP addresses basically
covering the /24 subnet.

header IP_WL Received=~ /\[212.74.114.[0-9]{1,3}\]/

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  "Bother," said Pooh as he struggled with /etc/sendmail.cf, "it never
  does quite what I want. I wish Christopher Robin was here."
                                           -- Peter da Silva in a.s.r
-----------------------------------------------------------------------
 2 days until Christmas

Reply via email to