CIS-LINUX-3.2.1
Ensure IP forwarding is disabled
MédiaNível 1Automatizadalinux
Descrição
The net.ipv4.ip_forward flag controls whether the system forwards packets. Disable it unless the host is a router.
Como é verificado
Método de auditoria: Comando shell
shell
sysctl -n net.ipv4.ip_forward- Saída esperada
0
Como é corrigido
Método de correção: Comando shell
shell
sysctl -w net.ipv4.ip_forward=0Propriedades
- Sistemas operacionais
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- networksysctl
- Referência
- CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure IP forwarding is disabled (verify section number for your 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