TMAegisBeta
Više pravila za linux

Linux distributions

TMA-RHEL10-4.1.2

Ensure firewalld backend is configured

SrednjaNivo 1Automatskalinux

Opis

The FirewallBackend option selects the firewall backend implementation. Choices are: • nftables (default) • iptables (iptables, ip6tables, ebtables and ipset)

Kako se proverava

Metod provere: Komanda ljuske

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
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

Edit the file /etc/firewalld/firewalld.conf and add or modify the following line: FirewallBackend=nftables

Svojstva

Operativni sistemi
rhel-10
Oznake
cis-convertedlinux
Referenca
CIS Red Hat Enterprise Linux 10 Benchmark v1.0.1 - 4.1.2

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target linux