TMAegis
Más reglas para linux

CIS-LINUX-3.2.1

Ensure IP forwarding is disabled

MediaNivel 1Automatizadalinux

Descripción

The net.ipv4.ip_forward flag controls whether the system forwards packets. Disable it unless the host is a router.

Cómo se verifica

Método de auditoría: Comando de shell

shell
sysctl -n net.ipv4.ip_forward
Salida esperada
0

Cómo se corrige

Método de corrección: Comando de shell

shell
sysctl -w net.ipv4.ip_forward=0

Propiedades

Sistemas operativos
ubuntu-22.04, ubuntu-24.04, rocky-9
Etiquetas
networksysctl
Referencia
CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure IP forwarding is disabled (verify section number for your 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