Linux: Log Suspicious Martian Packets / Un-routable Source Addresses
To log suspicious Martian packets (packets with un-routable source addresses) in Linux, you can modify the kernel’s syslog configuration. Here is an example of how to do it: Edit the /etc/sysctl.conf file and add the following line: net.ipv4.conf.all.log_martians = 1 Save the changes and reload the sysctl configuration: sysctl -p Configure the syslog daemon to … Read more