From owner-freebsd-questions@FreeBSD.ORG Fri Jun 20 05:39:53 2003 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 0DE7B37B401 for ; Fri, 20 Jun 2003 05:39:53 -0700 (PDT) Received: from maild.telia.com (maild.telia.com [194.22.190.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9C7743F75 for ; Fri, 20 Jun 2003 05:39:50 -0700 (PDT) (envelope-from webmaster@swedehost.com) Received: from thor.swedehost.com (h129n2fls33o804.telia.com [217.209.211.129]) by maild.telia.com (8.12.9/8.12.9) with ESMTP id h5KCdn7V004644 for ; Fri, 20 Jun 2003 14:39:49 +0200 (CEST) X-Original-Recipient: From: Hasse Organization: The Valhalla Project To: FreeBSD Questions Date: Fri, 20 Jun 2003 14:39:58 +0200 User-Agent: KMail/1.5.2 References: <200306191747.19538.webmaster@swedehost.com> In-Reply-To: <200306191747.19538.webmaster@swedehost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306201439.58121.webmaster@swedehost.com> Subject: Re: dhclient filling up my logfiles 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: Fri, 20 Jun 2003 12:39:53 -0000 On Thursday 19 June 2003 17.47, Hasse wrote: > Hi everybody. > Running FreeBSD 4.8-Stable. > I'm connected to the internet by ADSL and dynamic IP. > Dhcp-client keeps filling up my /var/log/messages. > Makes a log-entry every 10th minute. > > > Jun 19 17:35:56 odin dhclient: New Network Number: 217.209.211.0 > Jun 19 17:35:56 odin dhclient: New Broadcast Address: 217.209.211.255 > Jun 19 17:44:48 odin dhclient: New Network Number: 217.209.211.0 > Jun 19 17:44:48 odin dhclient: New Broadcast Address: 217.209.211.255 > > > I'm running it with a practically empty dhclient.conf file. > Only added one line to preserve my resolv.conf file. > prepend domain-name-servers 127.0.0.1; > > According to the man-page dhclient(8), it's possible to > add a "-q" switch to only log errors. > > > The client normally prints a startup message and displays the protocol > sequence to the standard error descriptor until it has acquired > an address, and then only logs messages using the syslog (3) facility. > The -q flag prevents any messages other than errors from being printed to > the standard error descriptor. > > > I've tried to put it in rc.conf like this : > ifconfig_xl0="DHCP" > dhcp_program="/sbin/dhclient" > dhcp_flags="-q" > > But it still logs every connection. -- Regards Hasse Webmaster @ Swedehost.com ------------- > Check the lease file you're receiving, if it has a rediculously short > lease time complain to your provider. > > Or it may well be the case that their dhcpd server is way too chatty. > This often seems to be the case (possibly to make it work with windows, > I dunno). I just block that traffic from my cable ISP on my firewall > and keep state on outgoing connections, so that if the lease is going > to expire dhclient will ask the server and get its reply but only then, > not without the client asking. It also makes me feel a bit more secure. > > (/var/log/messages): > Jun 2 23:26:31 gateway dhclient: New Network Number: 217.121.0.0 > Jun 2 23:26:31 gateway dhclient: New Broadcast Address: 217.121.1.255 > Jun 6 11:31:18 gateway dhclient: New Network Number: 217.121.0.0 > Jun 6 11:31:18 gateway dhclient: New Broadcast Address: 217.121.1.255 > Jun 9 23:58:28 gateway dhclient: New Network Number: 217.121.0.0 > Jun 9 23:58:28 gateway dhclient: New Broadcast Address: 217.121.1.255 > Jun 13 14:02:53 gateway dhclient: New Network Number: 217.121.0.0 > Jun 13 14:02:53 gateway dhclient: New Broadcast Address: 217.121.1.255 > Jun 17 02:03:22 gateway dhclient: New Network Number: 217.121.0.0 > Jun 17 02:03:22 gateway dhclient: New Broadcast Address: 217.121.1.255 > > HTH, > > --Dan ------------- This excessive logging behavior started for about 4 days ago. At least, thats when I got aware of it. Everything is working just fine, except for this. My IP-address hardly ever change. I've had the same one for nearly a year now. There got to be a way to tell it to only log errors, not every connection, but I don't know how. I was looking for a way in the syslog.conf, but I have very little understanding for that tool. ( not a clue ). Any more hints or clues would be preciated. This is a snip from my lease file : lease { interface "xl0"; fixed-address 217.209.211.129; option subnet-mask 255.255.255.0; option time-offset 3600; option routers 217.209.211.1; option dhcp-lease-time 1200; option dhcp-message-type 5; option domain-name-servers 127.0.0.1,10.0.0.1,10.0.0.2; option dhcp-server-identifier 10.0.113.1; option broadcast-address 217.209.211.255; renew 5 2003/6/20 12:18:03; rebind 5 2003/6/20 12:26:08; expire 5 2003/6/20 12:28:38; } -- Regards Hasse