TMAegis
Más reglas para linux

TMA-LNX-NET-ACCEPT-REDIRECTS

Ensure ICMP redirects are not accepted

MediaNivel 1Automatizadalinux

Descripción

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

Cómo se verifica

Método de auditoría: Comando de shell

shell
sysctl -n net.ipv4.conf.all.accept_redirects
Salida esperada
0

Cómo se corrige

Método de corrección: Comando de 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

Propiedades

Sistemas operativos
ubuntu-22.04, ubuntu-24.04, rocky-9
Etiquetas
kernelsysctlnetwork
Referencia
CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)

Verificar este host

Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.

shell
tmaegis scan --target linux