Cheat Sheets

Security - No IPv4 forwarding

Description

IPv4 forwarding is to be disabled

Tags

  • CCE-26866-4

Check Script: security-ipv4-forwarding.sh

#!/bin/bash

if /sbin/sysctl -a 2>/dev/null | grep -q "^net\.ipv4\.*\.forwarding = 1" 2>/dev/null; then result_failed "IPv4 forwarding is enabled" fi