Project for school. This needs cleaned up…

Using Fedora 15

Open Terminal

yum install nano

Disable SELinux

nano /etc/selinux/config/




Open Terminal

nano /etc/rsyslog.conf

$UDPServerRun 514

$InputTCPServerRun 514

This loads the needed module and sets up a listening socket.

Add to allow any host and log the messages to the stated log file, then delete the data so it is not ALSO logged to /var/log/messages.

:fromhost-ip,startswith,”192.168.1.” /var/log/juniper.log

Restart the service

service rsyslog restart

Verify that the socket is listening.

netstat -tunlp | grep syslog

To test on client or Server:

echo “yo-Adrian” | nc -u (yourServersIP) 514

To log, on client modify

nano /etc/syslog.conf


killall -HUP syslogd

Allow the output of UDP packets to the syslog server

iptables -A output -p udp -i eth0 -s -d –dport 514 -j ACCEPT