7.2.4 Log Suspicious Packets - 'net.ipv4.conf.all.log_martians = 1'

Information

When enabled, this feature logs packets with un-routable source addresses to the kernel
log.

*Rationale*

Enabling this feature and logging these packets allows an administrator to investigate the
possibility that an attacker is sending spoofed packets to their server.

Solution

Set the net.ipv4.conf.all.log_martians and net.ipv4.conf.default.log_martians parameters to
1 in /etc/sysctl.conf-net.ipv4.conf.all.log_martians=1
net.ipv4.conf.default.log_martians=1

Modify active kernel parameters to match-# /sbin/sysctl -w net.ipv4.conf.all.log_martians=1
# /sbin/sysctl -w net.ipv4.conf.default.log_martians=1
# /sbin/sysctl -w net.ipv4.route.flush=1

See Also

https://workbench.cisecurity.org/files/91

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c.

Plugin: Unix

Control ID: cc6943cba385dee5bda0810153c44827a9f6fc66e8cbdb61c6adea1eda5031b5