From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 12:53:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8771D16A4CE for ; Thu, 26 Aug 2004 12:53:59 +0000 (GMT) Received: from mail.bsd.net (mail.bsd.net [195.30.248.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 165FE43D62 for ; Thu, 26 Aug 2004 12:53:58 +0000 (GMT) (envelope-from freebsd@lists.42x.org) Received: (qmail 25398 invoked from network); 26 Aug 2004 12:53:55 -0000 X-BSD-Qmail-VirusScan: scanned by Sophos Anti-Virus v3.82 FILE NOT INFECTED: [1093524835.25394-0.marvin.42x.org] X-BSD-Remote-Host-Info: free.bsd.net - 193.149.36.81 Received: from free.bsd.net (193.149.36.81) by mail.bsd.net with QMQP; 26 Aug 2004 12:53:55 -0000 Date: Thu, 26 Aug 2004 14:53:55 +0200 From: Martin Hasenbein To: FreeBSD Questions Message-ID: <20040826125355.GA48259@bsd.net> Mail-Followup-To: FreeBSD Questions References: <412DCFB7.1000502@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <412DCFB7.1000502@freebsd.org> User-Agent: Mutt/1.4.2.1i Subject: Re: Logging router errors using syslog X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 12:53:59 -0000 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 martin@hasenbein.com | mh@bsd.net | martin@hasenbein.net Unix is simple, but it takes a genius to understand the simplicity --Dennis Ritchie