tcp-wrappers NcFTPd general.cf file configuration
Don't forget to restart NcFTPd after modifying the general.cf file.

You can control which client hosts contact your server by using TCP Wrappers' access control files.  Consult the documentation that comes with TCP Wrappers for information on how to configure the access controls.

Restrictions:

Service-specific access for NcFTPd can be controlled by the "NcFTPd:" service name.

Please note that the author of TCP Wrappers (Wietse Venema) is not responsible for NcFTPd's implementation -- if you have problems with NcFTPd but your other services work fine with your TCP Wrappers please contact us first.

Also note that turning this feature on invokes a substantial performance penalty.  If you're running an anonymous-only site you probably don't want to turn anyone away anyway.

Examples:

Recommendation:

Example TCP Wrappers configuration:

This example shows how to limit FTP access to only the 192.168.5.* network and hosts in the *.foobar.net domain. All other hosts are denied.

Contents of /etc/hosts.allow file:

Contents of /etc/hosts.deny file:

Up
Previous: tar NcFTPd Home Next: throttle