7.2.4 Log Suspicious Packets - net.ipv4.conf.default.log_martians

Information

When enabled, this feature logs packets with un-routable source addresses to the kernel log. 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=1net.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/85

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c.

Plugin: Unix

Control ID: eab65f1e3ee30a970acf4f18cee8e67bb152d4584b3bd064e47531ee8f273e4a