Cheat Sheets

Security - No IPv4 forwarding

Description

IPv4 forwarding is to be disabled

Tags

  • CCE-26866-4

Check Script: security-ipv4-forwarding.sh

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