Re: [exim] howto block connects from certain ip-addresses?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Stephen Gran
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] howto block connects from certain ip-addresses?
On Fri, Nov 25, 2005 at 05:11:13PM +0100, Marten Lehmann said:
> Hello,
>
> how would an acl-rule have to look like to block a list of ip-address
> (e.g. "81.2.2.* : 218.1.5.3 : 64.4.2.64/28")?


The simplest way to do this sort of things is

deny hosts = /etc/exim/bad_hosts

where bad_hosts contains:

81.2.2.0/24
218.1.5.3
64.4.2.64/28

and so forth.

You can also use a hostlist, or put them all inline as you have above.
I tend to prefer a file for this sort of thing, as it means I can edit
the file without having to remember to HUP exim.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Hearts will never be practical until    |
|  steve@???             | they can be made unbreakable.   -- The  |
|  http://www.lobefin.net/~steve | Wizard of Oz                            |

--------------------------------------------------------------------------