procmail
[Top] [All Lists]

Re: IP range filter?

2004-11-08 05:20:27
Toen wij Joe Szilagyi kietelden, kwam er dit uit:

Does anyone have any sample one line filters for going by IP range?
I'd like to see some samples of how you filter by class A, class B,
and so forth with regular expressions?

From http://vsnag.spamless.us --> View Source -->  vsnag.genvars.rc

OCTET   = "([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])"
DOTQUAD = "$OCTET[.]$OCTET[.]$OCTET[.]$OCTET"

With that you can build the other expressions.

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>