3.10.1 Registering host names
You create a definition file as shown below and then specify host names.
- Organization of this subsection
(1) Creating a definition file
Create a definition file with the following path name:
JP1/FTP-installation-directory\FTPHOSTACC.INF
(2) Contents of the definition file
Use a text editor to specify the definition file (FTPHOSTACC.INF) according to the following method:
Begin by specifying a definition name, and then specify values on the following lines. If you specify multiple values, make sure that you specify only one value on each line. Any characters following a hash mark (#) through a linefeed are treated as a comment.
The following table lists and describes the definition names and values that can be specified.
Definition name |
Description |
Value |
---|---|---|
[allow_list] |
Specifies hosts whose connection is to be permitted. In the case of an IP address, you can specify an IPv4 or IPv6 address. |
IP address or host name |
[deny_list] |
Specifies hosts whose connection is to be rejected. In the case of an IP address, you can specify an IPv4 or IPv6 address. |
IP address or host name |
The following table shows the formats that can be used for specifying an IPv6 address.
No. |
Address to be specified |
Description |
Definition |
---|---|---|---|
1 |
2001:0db8:0020:0003:1000:0100:0020:0003 |
All 128 bits specified |
Valid |
2 |
2001:db8::9abc |
Partial omission |
Valid |
3 |
::1 |
Loopback address specification |
Valid |
4 |
2001:F123:2221:2312:3333:4444::/96 |
Mask specification |
Valid |
5 |
2001:128:222:333 |
Last value omission specification |
Invalid |
6 |
2001:F123:2221:2312:3333:*:5555:6666 |
Multiple specifications |
Invalid |
7 |
2001:F123:2221:2312:3333:4444:5555:1111-FFFF |
Multiple-range specification |
Invalid |
Example
(3) Notes
-
If there is no definition file, connection is permitted from all hosts.
-
If there is a definition file but it does not contain any valid definitions, connection requests from all hosts are rejected.
-
A connection request from a host that is not specified in the definition file or a host that is specified in both [allow_list] and [deny_list] is rejected.
-
When specifying an IPv6 address, specify a mask value in the format address-portion/xx (where xx is a decimal number between 1 and 128).
-
IPv6 address specifications that have a scope ID (with the % character specified) are invalid.