Linux distributions
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 指令
shell
sysctl -n net.ipv4.ip_forward- 預期輸出
0
修補方式
修補方法: Shell 指令
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