TMAegis
Weitere Regeln für linux

CIS-LINUX-3.2.1

Ensure IP forwarding is disabled

MittelStufe 1Automatisiertlinux

Beschreibung

The net.ipv4.ip_forward flag controls whether the system forwards packets. Disable it unless the host is a router.

So wird geprüft

Prüfmethode: Shell-Befehl

shell
sysctl -n net.ipv4.ip_forward
Erwartete Ausgabe
0

So wird behoben

Behebungsmethode: Shell-Befehl

shell
sysctl -w net.ipv4.ip_forward=0

Eigenschaften

Betriebssysteme
ubuntu-22.04, ubuntu-24.04, rocky-9
Tags
networksysctl
Referenz
CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure IP forwarding is disabled (verify section number for your 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