|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: CIDR in check_sender_access?
From: Andrzej Adam Filip (anfi
xl.wp.pl)
Date: Mon Jun 19 2006 - 14:43:29 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
wietse
porcupine.org (Wietse Venema) writes:
> Andrzej Adam Filip:
>> wietse
porcupine.org (Wietse Venema) writes:
>>
>> > Bruce Lane:
>> >> Fellow Postfixers,
>> >>
>> >> While I like (and greatly appreciate) the fact that Postfix
>> >> 2.x supports CIDR-notated black/whitelists, I find it frustrating
>> >> that the CIDR notation is only supported in a file type.
>> >
>> > Postfix supports CIDR lookup tables.
>> >
>> > check_client_access cidr:/file/name/here
>> >
>> > man 5 cidr_table
>> > http://www.postfix.org/cidr_table.5.html
>> >
>> > CIDR support in hash files makes no sense. That would require 32
>> > lookups (with IPv6, 128 lookups).
>>
>> You are right about *HASH* files but BTREE is another story.
>> BTREE with two entries per CIDR (ON&OFF) would deliver 1 lookup only
>> CIDR support.
>
> I'm looking forward for your btree-based CIDR table implementation.
Would working sample/reference implementation of the idea in perl
satisfy you?
--
[pl2en: Andrew] Andrzej Adam Filip : anfi
priv.onet.pl : anfi
xl.wp.pl
http://anfi.homeunix.net/ http://www.linkedin.com/in/andfil
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]