SV-274158r1184031_rule
V-274158
SRG-OS-000096-GPOS-00050
AZLX-23-002475
CAT II
10
Configure Amazon Linux 2023 to prohibit/restrict Functions, Ports, Protocols, and Services. Use firewall-cmd to manage firewalld.
To open a port for a service, configure firewalld using the following command:
$ sudo firewall-cmd --permanent --add-port=port_number/tcp
or
$ sudo firewall-cmd --permanent --add-service=service_name
Verify Amazon Linux 2023 firewall is configured to block unregistered ports, protocols, and services.
Inspect the list of enabled firewall ports and verify they are configured correctly by running the following command:
$ sudo firewall-cmd --list-all
Ask the system administrator for the site or program PPSM Component Local Service Assessment (CLSA). Verify the services allowed by the firewall match the PPSM CLSA.
If there are additional ports, protocols, or services that are not in the PPSM CLSA, or there are ports, protocols, or services that are prohibited by the PPSM CAL, or there are no firewall rules configured, this is a finding.
V-274158
False
AZLX-23-002475
Verify Amazon Linux 2023 firewall is configured to block unregistered ports, protocols, and services.
Inspect the list of enabled firewall ports and verify they are configured correctly by running the following command:
$ sudo firewall-cmd --list-all
Ask the system administrator for the site or program PPSM Component Local Service Assessment (CLSA). Verify the services allowed by the firewall match the PPSM CLSA.
If there are additional ports, protocols, or services that are not in the PPSM CLSA, or there are ports, protocols, or services that are prohibited by the PPSM CAL, or there are no firewall rules configured, this is a finding.
M
5700