2015-06-10 14:42:41迷鼠

[Linux]messages紀錄檔出現大量「martian source」訊息處理方法

運作環境:CentOS 6.2
狀況描述:在/var/log/messages記錄檔中出現大量的「martian source x.x.x.255 from x.x.x.x」訊息
解決方法:停止記錄「martian source」的日誌
1.編輯/etc/sysctl.conf內容
依需求在檔案尾端插入
net.ipv4.conf.default.log_martians = 0
net.ipv4.conf.lo.log_martians = 0
net.ipv4.conf.
eth0.log_martians = 0
net.ipv4.conf.all.log_martians = 0
2.
存檔後執行sysctl -p重新啟動