Add to Favourites Add to Favourites    Print this Article Print this Article

Restrict access to proftpd based on IP or reverse lookup value

If you'd like to lock down ftp so that only specific IPs, ranges or reverse IP lookup values are allowed to connect you can use the following.

1) To only allow specific IPs to connect, add the following to your                      Order allow,deny
               Allow from,
               Deny from all
       If you're using 1.3.4rc1 or newer, you can use ranges and wildcard values.

2) Or to only allow IPs who's reverse IP lookups belong to a certain family of IPs (usually a specific ISP), you can use the follwing in your                      Order allow,deny
               Allow from
               Deny from all
       where the reverse IP lookup of all IPs that are to connect, end in

Replace bold values with your relevant data.

Was this answer helpful?

Also Read