Linux distributions
TMA-ALMA8-4.1.2
Ensure firewalld backend is configured
MediaNivel 1Automatizadalinux
Descripción
The FirewallBackend option selects the firewall backend implementation. Choices are: • nftables (default) • iptables (iptables, ip6tables, ebtables and ipset)
Cómo se verifica
Método de auditoría: Comando de shell
shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep -Psi -- '"'"'FirewallBackend\h*=\h*nftables\b'"'"' /etc/firewalld/firewalld.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- FirewallBackend=nftables || { echo step1: missing FirewallBackend=nftables; return 1; }; }; if alt0; then echo compliant; fi- Salida esperada
compliant
Cómo se corrige
Método de corrección: Guía o parche de infraestructura
Edit the file /etc/firewalld/firewalld.conf and add or modify the following line: FirewallBackend=nftables
Propiedades
- Sistemas operativos
- almalinux-8
- Etiquetas
- cis-convertedlinux
- Referencia
- CIS AlmaLinux OS 8 Benchmark v4.0.0 - 4.1.2
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target linux