TMAegis
更多 linux 規則

TMA-LNX-NET-SOURCE-ROUTE

Ensure source routed packets are not accepted

中等級 1自動化linux

說明

Kernel parameter net.ipv4.conf.all.accept_source_route should be 0.

檢查方式

稽核方法: Shell 指令

shell
sysctl -n net.ipv4.conf.all.accept_source_route
預期輸出
0

修補方式

修補方法: Shell 指令

shell
sysctl -w net.ipv4.conf.all.accept_source_route=0 && printf 'net.ipv4.conf.all.accept_source_route = 0\n' > /etc/sysctl.d/60-tmaegis-net_ipv4_conf_all_accept_source_route.conf

屬性

作業系統
ubuntu-22.04, ubuntu-24.04, rocky-9
標籤
kernelsysctlnetwork
參考資料
CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target linux