Public domain
Edit /etc/rc.d/rc.syslog, inside function syslogd_start(),
add -r after /usr/sbin/syslogd
or simply run this command :
sed -i -e 's,/usr/sbin/syslogd$,& -r,' /etc/rc.d/rc.syslog
/etc/rc.d/rc.syslog restart
iptables -A INPUT -p udp --dport 514 ! -s 172.31.0.3 -j DROP
Cisco-3750#configure terminal
Cisco-3750(config)#logging host 172.31.0.254
Cisco-3750(config)#exit
Cisco-3750#wri mem
BY: Pejman Moghadam
TAG: syslogd, cisco
DATE: 2012-08-18 14:34:33