TMA-LNX-NET-ACCEPT-REDIRECTS
Ensure ICMP redirects are not accepted
MittelStufe 1Automatisiertlinux
Beschreibung
Kernel parameter net.ipv4.conf.all.accept_redirects should be 0.
So wird geprüft
Prüfmethode: Shell-Befehl
shell
sysctl -n net.ipv4.conf.all.accept_redirects- Erwartete Ausgabe
0
So wird behoben
Behebungsmethode: Shell-Befehl
shell
sysctl -w net.ipv4.conf.all.accept_redirects=0 && printf 'net.ipv4.conf.all.accept_redirects = 0\n' > /etc/sysctl.d/60-tmaegis-net_ipv4_conf_all_accept_redirects.confEigenschaften
- Betriebssysteme
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- kernelsysctlnetwork
- Referenz
- CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target linux