Linux distributions
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