TMAegisBeta
更多 linux 规则

Linux distributions

TMA-LNX-NET-ACCEPT-REDIRECTS

Ensure ICMP redirects are not accepted

中级别 1自动化linux

说明

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

检查方式

审计方法: Shell 命令

shell
sysctl -n net.ipv4.conf.all.accept_redirects
预期输出
0

修复方式

修复方法: Shell 命令

shell
sysctl -w net.ipv4.conf.all.accept_redirects=0 && printf 'net.ipv4.conf.all.accept_redirects = 0\n' > /etc/sysctl.d/60-tmaegis-net_ipv4_conf_all_accept_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