I'm trying to restrict access to my pure-ftp server from all ip address with the exception of a couple ip's. I'm running FreeBSD 7.2 and I've tried editing the hosts.allow file with following:
The ip listed as xx.xx.xx.101 is one of the ips that I want to be able to access the ftp server.
Any suggestions?
Code:
# Provide a small amount of protection for ftpd
ftpd : localhost : allow
#ftpd : .nice.guy.example.com : allow
#ftpd : .evil.cracker.example.com : deny
ftpd : ALL : deny
#ftpd : ALL : allow
ftpd : xx.xx.xx.101 : allow
The ip listed as xx.xx.xx.101 is one of the ips that I want to be able to access the ftp server.
Any suggestions?