3.3.2 Ensure /etc/hosts.allow is configured

Information

The /etc/hosts.allow file specifies which IP addresses are permitted to connect to the host. It is intended to be used in conjunction with the /etc/hosts.deny file.

Rationale:

The /etc/hosts.allow file supports access control by IP and helps ensure that only authorized systems can connect to the system.

Solution

Run the following command to create /etc/hosts.allow:

# echo 'ALL: <net>/<mask>, <net>/<mask>, ...' >/etc/hosts.allow

where each <net>/<mask> combination (for example, '192.168.1.0/255.255.255.0') represents one network block in use by your organization that requires access to this system.

Additional Information:

Contents of the /etc/hosts.allow file will vary depending on your network configuration.

See Also

https://workbench.cisecurity.org/files/3399

Item Details

Category: SECURITY ASSESSMENT AND AUTHORIZATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CA-9, 800-53|SC-7, 800-53|SC-7(5), CSCv6|9.2, CSCv7|9.4

Plugin: Unix

Control ID: 51c9e73b46f610e3db88f0f3410032ad6c52121d6432088a4c7248baca5aa301