Router syslog to Linux Syslog serverFirst , you need configure and enable "syslog server" as linux server ip in your router , such as, cisco RV-042tcpdump -nvvX udp port 514 -s 1500 Try check in tcpdump for router syslog coming-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 514 -j ACCEPT vi /etc/sysconfig/syslog - Add router syslog line - If you have *.info set for /var/log/messages then add !daemon.info to the end of the line vi /etc/logrotate.d/syslog /etc/init.d/syslog restart ####################################################### cat /var/log/router.log |grep 'Flood' | awk '{print $14}' | sort | uniq -c | sort -nr PS : you can use this example shell script to check the number source IP of "Block Syn Flood"cat /var/log/messages | grep SRC | grep "Jul 3 10:" | awk '{print $9}' | sort | uniq -c | sort -nr PS : you can use this example shell script to check the number source IP specific the hour timingServer is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |