IP Restrictor
The IP restrictor allows you to restrict access to your FTP server by IP address. Client IP addresses can be allowed or denied access according to rules specified.
IP addresses can be specified with wild cards. The following special characters may be used.
- * : A star functions as a wildcard for checking the IP address. Any name or number will match that section of the rule if it is a star.
- ? : The question mark '?' character functions as a wildcard for a single character.
- [-] : The hyphen '-' character functions as a range in an IP address.
The order of the rules is important. When a client contacts the server, the rules are evaluated from top to bottom in the list of rules. The first matching rule applies and evaluation is stopped. If there is no match, the client is allowed to access the server.
Configuration Parameters
Configuration Parameter |
Description |
config.ip-restrictor.class |
org.apache.ftpserver.iprestrictor.FileIpRestrictor |
config.ip-restrictor.file |
The file where IP restriction information will be stored. The default value is ./res/ip.gen |
IP Restrictor UI
This IP restriction can be configured using server UI.