Re: only_from

"Streiner, Justin" <[email protected]> Tue, 30 Dec 2003 09:14:43 -0500 (EST)
Newsgroups gmane.network.xinetd
Message-ID <Pine.GSO.4.58.0312300910170.6904@lurch>
On Tue, 30 Dec 2003, [ISO-8859-1] J=F6rn Vehoff wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
> I am using xinetd Version 2.3.4 libwrap loadavg on a Debian box to run =
exim.
>
> I am using the following configuration:
>
> service smtp
> {
> socket_type     =3D stream
> protocol        =3D tcp
> wait            =3D no
> user            =3D mail
> server          =3D /usr/sbin/exim
> server_args     =3D -bs
> interface       =3D [MY_IP]
>
> only_from       =3D [LIST_OF_IPs]
> }
>
> LIST_OF_IPs is a list of about 300 different IP addresses. They have
> nothing in common and might grow to 500 and more. It is simply a space
> separated list of individual IPs.

I ran into the same problem awhile back, I would guess at 100 or 128
elements and the list looked like:

only_from	=3D 1.2.3.4 10.1.1.0/24 172.16.32.0/22 ....

You can do something like this:

only_from       =3D 1.2.3.4
only_from      +=3D 10.1.1.0/24
only_from      +=3D 172.16.32.0/22
and so on...

I have about 180 IP addresses or ranges in an xinetd implementation I'm
running and it works fine.

Hope this helps.
jms