[Exim] rejecting hosts, with cidr notation and customized me…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Rejo Zenger
Dátum:  
Címzett: exim-users
Tárgy: [Exim] rejecting hosts, with cidr notation and customized message
Hi,

What I would like to have is a file with on each line an IP address or a
range of IP addresses in CIDR notation with some text. Incoming
connections that match should be rejected with the text as error
message.

So, the file looks like:

213.229.30.11    Blocked because of <specific reason>.
213.229.30.0/24    Blocked because of <general reason>.


If 213.229.30.11 is connecting, the connection would be denied with the
error message would be "Blocked because of <specific reason>.", If
213.229.30.12 is connect, access is denied with "Blocked because of
<general reason>." and a connection of 213.229.31.11 would be accepted.

This should be done with an ACL. However, I'm not sure if I can do this
with a simple lsearch. Could someone point me to the correct direction?

--
Rejo Zenger <rejo@???>
http://www.xs4all.nl/~sister
PGP 0x75FC50F3