TMAegisBeta
Thêm quy tắc cho linux

Linux distributions

TMA-RHEL10-4.1.2

Ensure firewalld backend is configured

Trung bìnhCấp 1Tự độnglinux

Mô tả

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

Cách kiểm tra

Phương pháp kiểm tra: Lệnh 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
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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

Thuộc tính

Hệ điều hành
rhel-10
Thẻ
cis-convertedlinux
Tham chiếu
CIS Red Hat Enterprise Linux 10 Benchmark v1.0.1 - 4.1.2

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target linux