Linux distributions
TMA-LNX-NET-ACCEPT-REDIRECTS
Ensure ICMP redirects are not accepted
MédiaNível 1Automatizadalinux
Descrição
Kernel parameter net.ipv4.conf.all.accept_redirects should be 0.
Como é verificado
Método de auditoria: Comando shell
shell
sysctl -n net.ipv4.conf.all.accept_redirects- Saída esperada
0
Como é corrigido
Método de correção: Comando 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.confPropriedades
- Sistemas operacionais
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- kernelsysctlnetwork
- Referência
- CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)
Verificar este host
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
shell
tmaegis scan --target linux