From owner-freebsd-questions@FreeBSD.ORG Wed Jun 6 09:03:43 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33B6E106566C for ; Wed, 6 Jun 2012 09:03:43 +0000 (UTC) (envelope-from prvs=497d7ee11=a@jenisch.at) Received: from mgaterz2.oekb.co.at (mgaterz2.oekb.co.at [143.245.5.112]) by mx1.freebsd.org (Postfix) with ESMTP id B3A008FC0A for ; Wed, 6 Jun 2012 09:03:42 +0000 (UTC) Received: from exchhubcas2.oekb.co.at ([143.245.3.66]) by mgaterz2.oekb.co.at with ESMTP/TLS/AES128-SHA; 06 Jun 2012 11:02:33 +0200 Received: from aurora.oekb.co.at (143.245.9.16) by internal-relay-exchhubcas2.oekb.co.at (143.245.3.65) with Microsoft SMTP Server id 14.2.298.4; Wed, 6 Jun 2012 11:02:33 +0200 Received: from aurora.oekb.co.at (localhost [127.0.0.1]) by aurora.oekb.co.at (8.14.5/8.14.5) with ESMTP id q5692XTA003807; Wed, 6 Jun 2012 11:02:33 +0200 (CEST) (envelope-from a@jenisch.at) Received: (from ej@localhost) by aurora.oekb.co.at (8.14.5/8.14.5/Submit) id q5692X9K003806; Wed, 6 Jun 2012 11:02:33 +0200 (CEST) (envelope-from a@jenisch.at) X-Authentication-Warning: aurora.oekb.co.at: ej set sender to a@jenisch.at using -f Date: Wed, 6 Jun 2012 11:02:33 +0200 From: Ewald Jenisch To: Message-ID: <20120606090233.GA3748@aurora.oekb.co.at> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: isc-dhcpd - logging client transactions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 09:03:43 -0000 Hi, I've set up isc-dhcpd (/usr/ports/net/isc-dhcp42-server). The daemon runs, hands out IP-addresses however logging doesn't seem to work. Here's what I've got in the respective config-files: /etc/rc.conf: # dhcpd dhcpd_enable="YES" dhcpd_conf="/usr/local/etc/dhcpd.conf" dhcpd_ifaces="em0" dhcpd_withumask="022" dhcpd_chuser_enable="YES" dhcpd_withuser="dhcpd" dhcpd_withgroup="dhcpd" dhcpd_chroot_enable="YES" dhcpd_devfs_enable="YES" dhcpd_rootdir="/var/db/dhcpd" /usr/local/etc/dhcpd.conf: ... log-facility local7; /etc/syslog.conf: local7.* /var/log/dhcpd.log /var/log/dhcpd.log is "touch"ed, so it exists. Also restarted syslogd and isc-dhcpd. Result: dhcpd works (i.e. I see entries in the leases-file (/var/db/dhcpd/var/db/dhcpd/dhcpd.leases) however nothing is logged to /var/log/dhcpd.log. I can rule out any error with syslogd.conf since when I start isc-dhcp "by hand" (/usr/local/sbin/dhcpd -d) I get an error message - and this one is definitely logged to /var/log/dhcpd.log. What I really need though is a log of all the DHCP-transactions, i.e. DHCP-requests, address assignments etc. Thanks much in advance for your help, -ewald