Linux distributions
TMA-ROCKY10-4.1.3
Ensure firewalld.service is configured
MédiaNível 1Automatizadalinux
Descrição
firewalld.service is a firewall service daemon that provides a dynamic, customizable firewall with a D-Bus interface.
Como é verificado
Método de auditoria: Comando shell
shell
alt0() { command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-enabled firewalld.service' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- enabled || { echo step1: missing enabled; return 1; }; command -v systemctl >/dev/null 2>&1 || { echo "step2: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-active firewalld.service' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- active || { echo step2: missing active; return 1; }; }; if alt0; then echo compliant; fi- Saída esperada
compliant
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
Run the following commands to unmask, enable, and start firewalld.service: # systemctl unmask firewalld.service # systemctl --now enable firewalld.service
Propriedades
- Sistemas operacionais
- rocky-10
- Tags
- cis-convertedlinux
- Referência
- CIS Rocky Linux 10 Benchmark v1.0.0 - 4.1.3
Verificar este host
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
shell
tmaegis scan --target linux