Please wait while loading the page. You need to enable javascript to show the content.

n00b trek
Home
December 25th, 2009 — James

Assumptions:

You have a D-Link router that supports saving information to syslog.

You have a SuSE  Linux server or you are familiar with configuration locations on your distro. It is easy just search for syslog and your distro name. I didn’t know either.

Step 1: Open up /etc/syslog-ng/syslog-ng.conf in an editor. Most web sites refer to syslog-ng.conf.in or something like that. They seem to be out of date. There is only syslog-ng.conf

Uncomment the line

#udp(ip(“0.0.0.0″) port(514));

to

udp(ip(“0.0.0.0″) port(514));

Save the file and quit.

Step 2: Restart the syslog

rcsyslog restart

Step 3: Go to your DLink routers admin page. I assume you know how to get there. On my router the tab name is Tools and then click on SYSLOG. Check “Enable logging to syslog”. and then  type the IP address of the SuSE box there. Click the “Save Settings” button at the top.

Step 4: A few minutes later check the syslog messages on the server. You can get there easily by opening up yast2 and going to Miscellaneous -> System log. Or just tail /var/log/messages.

Do not open that port on your router.