On Sun, 30 Jan 2000, Marc Dufresne wrote:

> "Hosts.allow"
> in.telnetd: 192.168.0.0/24,192.168.1.0/24 :ALLOW
> in.ftpd: 192.168.0.0/24,192.168.1.0/24 :ALLOW
> 
> "Hosts.deny"
> in.telnetd: ALL: banners /etc/banners
> in.ftpd: ALL: banners /etc/banners
> 
> 
> Any ideas as to why it isn't working?
> 

Hm, it seems that inetd doesn't like definitions like x.x.x.x/x.
You have to use decimal notation of netmask (/24==/255.255.255.0), or the
format shown below ;>.
Besides all you need to do, to deny everyone but local users is to put
such strings into /etc/hosts.deny :

in.telnetd: ALL EXCEPT 192.168.0., 192.168.1. : banners /etc/banners
in.ftpd: ALL EXCEPT 192.168.0., 192.168.1. : banners /etc/banners

That would be all... /etc/hosts.allow can be empty ;-).
Remember about the trailing dot in the address calsses ( 192.168.0. ).

blah... and sorry for my english ;P


 thorgi.


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to