Question regarding IPBlock

Scott Silva ssilva at SGVWATER.COM
Mon Mar 7 18:07:24 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Julian Field wrote:
> Marcel Blenkers wrote:
>
>> Hi there and sorry for the late answer..
>>
>> On Thu, 24 Feb 2005, Kai Schaetzl wrote:
>>
>>
>>
>>> Marcel Blenkers wrote on         Thu, 24 Feb 2005 14:36:33 +0100:
>>>
>>>
>>>
>>>> use the
>>>> access-file with makemap to create the access.db?
>>>>
>>>>
>>>>
>>> makemap is what gets used for creating access.db. If you want to run it
>>> yourself, just do.
>>>
>>>
>>>
>> guess you got me wrong here ;)
>>
>> The Script IPBlock written by Julian and usable as extra script just adds
>> the ips, which should be blocked, into the access.db-file.
>> Means, there is no way to see the blocked ips within the access-file.
>>
>>
> Yes there is.
> makemap -u hash access
>
>> So my question was really, if the script could be changed, to insert the
>> blocked ips into the access-file, and then use makemap to generate the
>> access.db itself.
>>
>> So every admin could check the access-file itself, delete the ip if
>> needed, generate the new access.db with makemap and so those ips which
>> are
>> blocked, could be unblocked the easy way.. =)
>>
>> Currently the admin only gets the chance to see which ips are blocked, as
>> he (or shee) is looking into the mail-og and searches for the String
>> blocked by Mailscanner.
>>
>>
> The reason I wrote it the way I did is because you need to be able to
> (once an hour) remove all the IP addresses that were added by
> MailScanner, but leave all the entries that you put in the access map by
> hand. The easiest way to do that is to leave the text version alone, and
> add temporary IPs to the db file. Then hourly you simply rebuild the db
> file from the text file.
>
> If you can come up with a better system for doing this easily and
> efficiently (or better than mine) then please suggest it.
Could you maybe make another txt file say mailscanner_access
and cat mailscanner_access and access and then makemap from that?
My bash skills are atrocious
--
"If you have ever eaten crow,
It don't taste like chicken!!"

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list