TMAegisBeta
Aturan lainnya untuk linux

Linux distributions

TMA-ROCKY9-4.1.3

Ensure firewalld.service is configured

SedangLevel 1Otomatislinux

Deskripsi

firewalld.service is a firewall service daemon that provides a dynamic, customizable firewall with a D-Bus interface.

Cara pemeriksaan

Metode audit: Perintah 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
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Panduan atau patch infrastruktur

Run the following commands to unmask, enable, and start firewalld.service: # systemctl unmask firewalld.service # systemctl --now enable firewalld.service

Properti

Sistem operasi
rocky-9
Tag
cis-convertedlinux
Referensi
CIS Rocky Linux 9 Benchmark v3.0.0 - 4.1.3

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target linux