hosts.allow wildcards for login.conf
Andy Farkas
andyf at speednet.com.au
Tue Apr 15 20:37:16 PDT 2003
On Mon, 14 Apr 2003, Are-Harald Brenne wrote:
> I want to restrict ftp logins to computers on the 10.10. - network.
>
> >From the login.access manpage:
>
> host.allow list List of remote host wildcards from
> which users in the class may access.
>
> How does this wildcard thing work? I tried 10.10., 10.10 and 10.10.0.0/16.
>
Which manpage says that?
/etc/hosts.allow is your friend:
# Provide a small amount of protection for ftpd
ftpd : localhost : allow
#ftpd : .nice.guy.example.com : allow
#ftpd : .evil.cracker.example.com : deny
ftpd : 10.10.0.0/255.255.0.0 : allow
ftpd : ALL : deny
--
:{ andyf at speednet.com.au
Andy Farkas
System Administrator
Speednet Communications
http://www.speednet.com.au/
More information about the freebsd-questions
mailing list