On Thu, Jan 02, 2003 at 08:21:26PM -0500, Jefferis Peterson wrote:
I'm trying to block a range of IP's but I don't have access to the root
routines of the server. I'm getting pestered by:
INTERWEB HOSTING INC CORETEL-INTERWEB-BLK1 (NET-209-163-100-0-1)
209.163.100.0 - 209.163.100.255
Core Communications, Inc. CORETEL-BLK01 (NET-209-163-96-0-1)
209.163.96.0 - 209.163.111.255
On 12/31/02 9:35 AM, "Mark wrote:
This will match all class A addresses with a first octet value of 202 or 203
* ^Received: from.* 20[23]\.[0-9]+\.[0-9]+\.[0-9]
Adjust to your liking...
What is the difference between a class A and B or C. I was advise that I had
to hand list all addresses :
# pattern action
# When pattern matches a mail address, domain or host
# address, perform the corresponding action.
which appears to me like I would have to put each class C (or each
class B) on a separate line:
209.163.96.0 - 209.163.111.255
209.163.96 553 Drop Dead Spammer Scum
209.163.97 553 Drop Dead Spammer Scum
.
.
209.163.111 553 Drop Dead Spammer Scum
Since Coretel has a well defined range:
INTERWEB HOSTING INC CORETEL-INTERWEB-BLK1 (NET-209-163-100-0-1)
209.163.100.0 - 209.163.100.255
Core Communications, Inc. CORETEL-BLK01 (NET-209-163-96-0-1)
209.163.96.0 - 209.163.111.255
Blocking just InterWeb is easy:
* ^Recieved: from .* 209\.168.\.100
If you really want to get rid of all of CoreTel, repeat the above with
the last number ranging from 96 through 111.
* ^Recieved: from .* 209\.168.\.96
* ^Recieved: from .* 209\.168.\.97
* ^Recieved: from .* 209\.168.\.98
....
--
Yes, Java is so bulletproofed that to a C programmer it feels like being in a
straightjacket, but it's a really comfy and warm straightjacket, and the world
would be a safer place if everyone was straightjacketed most of the time.
-- Mark 'Kamikaze' Hughes
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail