This is a description of how I setup the syslog function of the BIPAC-741GE router to log messages to one of my FreeBSD v4.STABLE machines. It should be equally applicable to any Unix or Unix-like remote log host.
syslog daemon: 192.168.1.25 syslog nickname: router.sentry.org
!* +router *.* /var/log/router.logDo not forget that (1) you must use tabs to separate tokens in the syslog.conf file; (2) you need to specify the hostname without the domain name (at least under FreeBSD); and (3) failure to include the !* line above will result in all log entries from the immediately preceding program block being logged only when they originate from the router - which is not what you want! Please check the syntax of your syslog.conf file by checking its man page on your system carefully.
syslogd_flags="-a *sentry.org:50009"
Do not forget to replace sentry.org with your own domain name :) I found the port number used by the router was 50009 by running tcpdump while manually logging messages from the router via the old console facility (see below). It changes each time the router restarts, so it may make more sense to use a wildcard (ie use * instead of 50009).
192.168.1.154 router router.sentry.orgwhere 192.168.1.254 is the IP address of your router, router is its hostname and router.sentry.org is its fully qualified domain name.
To check that it all works, you will need to again use the serial console or telnet to access the router's command line interface. Once you are at the admin> prompt:
Jun 28 16:16:01 router Test
Before the syslog facility will become useful, you will also have to setup some of the router's log facilities to actually send their logs to the remote log host. Back to the serial console or telnet to access the router's command line interface. Once you are at the admin> prompt:
ProcessName Level LogTo ================================================== ppp none none pptp none none ddns none none maildemon none none firewall none none im none none snmpr none none webserver none noneBy default no log messages of any level are being logged anywhere.
ProcessName Level LogTo ================================================== ppp entryExit syslog pptp none none ddns none none maildemon none none firewall none none im none none snmpr none none webserver none none
Jun 28 17:49:26 router router.sentry.org:ppp:none: Channel Id(1) disconnected after (4 hr 15 min 8 sec) Jun 28 17:49:33 router router.sentry.org:ppp:none: Channel Id(1) connected
Enjoy!
All queries to: Trev
Copyright © 2003, Trevor B Roydhouse