TMA-LNX-NET-SEND-REDIRECTS
Ensure packet redirect sending is disabled
中等級 1自動化linux
說明
Kernel parameter net.ipv4.conf.all.send_redirects should be 0.
檢查方式
稽核方法: Shell 指令
shell
sysctl -n net.ipv4.conf.all.send_redirects- 預期輸出
0
修補方式
修補方法: Shell 指令
shell
sysctl -w net.ipv4.conf.all.send_redirects=0 && printf 'net.ipv4.conf.all.send_redirects = 0\n' > /etc/sysctl.d/60-tmaegis-net_ipv4_conf_all_send_redirects.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