SV-220118r603266_rule
V-220118
SRG-OS-000480
GEN006620
CAT II
10
Edit the /etc/hosts.allow and /etc/hosts.deny files to configure access restrictions.
Check for the existence of the /etc/hosts.allow and /etc/hosts.deny files.
Procedure:
# ls -la /etc/hosts.allow
# ls -la /etc/hosts.deny
If either file does not exist, this is a finding.
Check for the presence of a default deny entry.
Procedure:
# grep "ALL: ALL" /etc/hosts.deny
If the "ALL: ALL" entry is not present in the /etc/hosts.deny file, any TCP service from a host or network not matching other rules will be allowed access. If the entry is not in /etc/hosts.deny, this is a finding.
V-220118
False
GEN006620
Check for the existence of the /etc/hosts.allow and /etc/hosts.deny files.
Procedure:
# ls -la /etc/hosts.allow
# ls -la /etc/hosts.deny
If either file does not exist, this is a finding.
Check for the presence of a default deny entry.
Procedure:
# grep "ALL: ALL" /etc/hosts.deny
If the "ALL: ALL" entry is not present in the /etc/hosts.deny file, any TCP service from a host or network not matching other rules will be allowed access. If the entry is not in /etc/hosts.deny, this is a finding.
M
4061