Re: Logging router errors using syslog
Martin Hasenbein wrote: On 26 Aug 2004 (15:30:52) [1093527052], Mark Ovens wrote: Hi Mark, Thanks, yes, I was. I've changed it and restarted without ''-s'' but it still doesn't appear to be logging anything - I configured the router to log everything so the file should grow quite quickly. Do you have any other idea(s)? are you running some kind of firewall, like ipfilter or ipfw? No, I'm not. If so, did you open Port 514/UDP? What happens, if you change this line in /etc/syslog.conf local2 /var/log/router/zyxel to local2.*/var/log/router/zyxel and restart? It is actually local2.*, it was a typo in my original post, sorry. Regards, Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Logging router errors using syslog
On 26 Aug 2004 (15:30:52) [1093527052], Mark Ovens wrote: Hi Mark, > Thanks, yes, I was. I've changed it and restarted without ''-s'' but it > still doesn't appear to be logging anything - I configured the router to > log everything so the file should grow quite quickly. > > Do you have any other idea(s)? are you running some kind of firewall, like ipfilter or ipfw? If so, did you open Port 514/UDP? What happens, if you change this line in /etc/syslog.conf local2 /var/log/router/zyxel to local2.*/var/log/router/zyxel and restart? Ciao, -Martin. -- Martin Hasenbein |Volkartstr. 55| D-80636 Muenchen fon: +49 89 12163761 | fax: +49 89 12163763 | gsm: +49 175 2255715 Unix is simple, but it takes a genius to understand the simplicity --Dennis Ritchie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Logging router errors using syslog
Martin Hasenbein wrote: On 26 Aug 2004 (13:55:35) [1093521335], Mark Ovens wrote: Hi Mark, The router has been set up to log to the local2 facility and I've added these lines to the end of /etc/syslog.conf: !* +P650R-31 local2 /var/log/router/zyxel Can anyuone suggest why this is not working? how did you start syslogd? If it was started from /etc/rc.conf without modifying the flags for syslogd, it won't work. The default-flag for syslogd is syslogd_flags="-s" From the man-page: -s Operate in secure mode. Do not log messages from remote machines. If specified twice, no network socket will be opened at all, which also disables logging to remote machines. You have to disable this option and restart syslogd. Thanks, yes, I was. I've changed it and restarted without ''-s'' but it still doesn't appear to be logging anything - I configured the router to log everything so the file should grow quite quickly. Do you have any other idea(s)? Regards, Mark Ciao, -Martin. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Logging router errors using syslog
On 26 Aug 2004 (13:55:35) [1093521335], Mark Ovens wrote: Hi Mark, > The router has been set up to log to the local2 facility and I've added > these lines to the end of /etc/syslog.conf: > > !* > +P650R-31 > local2/var/log/router/zyxel > Can anyuone suggest why this is not working? how did you start syslogd? If it was started from /etc/rc.conf without modifying the flags for syslogd, it won't work. The default-flag for syslogd is syslogd_flags="-s" >From the man-page: -s Operate in secure mode. Do not log messages from remote machines. If specified twice, no network socket will be opened at all, which also disables logging to remote machines. You have to disable this option and restart syslogd. Ciao, -Martin. -- Martin Hasenbein |Volkartstr. 55| D-80636 Muenchen fon: +49 89 12163761 | fax: +49 89 12163763 | gsm: +49 175 2255715 [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] Unix is simple, but it takes a genius to understand the simplicity --Dennis Ritchie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"