TMAegis
linux のその他のルール

CIS-LINUX-3.2.1

Ensure IP forwarding is disabled

中レベル 1自動linux

説明

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

チェック方法

監査方法: シェルコマンド

shell
sysctl -n net.ipv4.ip_forward
期待される出力
0

修正方法

修正方法: シェルコマンド

shell
sysctl -w net.ipv4.ip_forward=0

プロパティ

オペレーティングシステム
ubuntu-22.04, ubuntu-24.04, rocky-9
タグ
networksysctl
参照
CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure IP forwarding is disabled (verify section number for your release)

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target linux