|
DISCLAIMER: All the information contained in this page, or any linked from it, is provided as is, having no warranty or support of any kind, and is used entirely at your own risk.
RT31x UNIX Syslog setup
This very brief tutorial will show you how to setup the logging feature on your Netgear RT31x to log to a log on your Redhat Linux based machine. I have only tested this with the RT311 and RT314 but it should also work with the Zyxel versions (well they make these things for Netgear), as for the operating systems, the system I used for this was running Redhat Linux 7.1, however, it should be fairly similar with other Linux variants, or even other UNIX type OS. Please let me know if it works for you on other Linux/OS variants, and I will update this page.
NOTE: Now for those who still use Windoze, all is not lost as various people emailed me with the details of a freeware Windoze syslog daemon which in theory will allow you to use the routers syslog function with a non-unix platform. I have not tested it (nor am likely to), so be warned you use it at your own risk, I cannot help you. Anyway, all the info you need can be found here.
Step 1. Linux setup
Not much to do here, you need to add the -r switch to the Syslog daemon so that it accepts logs from remote machines, then setup the log itself. So after making sure you are logged in as root, beginning with enabling remote source logging, which is setup by editing your /etc/sysconfig/syslog file and adding the -r switch to the default startup. This is added to the line that currently looks like this.
SYSLOGD_OPTIONS="-m 0"
Which after changing now reads
SYSLOGD_OPTIONS="-r -m 0"
Now onto the setup of the log itself, edit your /etc/syslog.conf file and add the following line to it
local6.* /var/log/router.log
Thats it, all it takes, now for these changes to take effect restart the syslog daemon with the following command
/etc/rc.d/init.d/syslog restart
Step 2. Router Setup
First thing to do it to telnet into the router, which is usually 192.168.0.1, go to the "system maintenance" menu, then select "Log and Trace" now select "UNIX Syslog" and set the following settings, remembering to press enter after each change.
Active = YES
Syslog IP Address = the ip address of the machine holding the log
Log Facility=Local 6
CDR=No
Packettriggered=Yes
Filter Log=Yes
PPP Log=No
Thats it for the setup now in order for your log file to actually contain anything, you will need to update your filters "Log" settings from "none" to one of the three possible options, these being
Action Matched
Action Not Matched
Both
I take it the function of these options does not need any further discussion, so only one last thing to remind you of "Remember to press enter after changing the filter Log setting or the changes may not be saved".
Links and Related Pages
|