TMAegis
Mais regras para linux

TMA-LNX-NET-SEND-REDIRECTS

Ensure packet redirect sending is disabled

MédiaNível 1Automatizadalinux

Descrição

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

Como é verificado

Método de auditoria: Comando shell

shell
sysctl -n net.ipv4.conf.all.send_redirects
Saída esperada
0

Como é corrigido

Método de correção: Comando 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

Propriedades

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