From owner-freebsd-questions Mon Dec 30 16:19:30 2002 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 9736937B401 for ; Mon, 30 Dec 2002 16:19:28 -0800 (PST) Received: from gate.raffles-it.com (raffles.demon.co.uk [62.49.18.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFA5143E4A for ; Mon, 30 Dec 2002 16:19:21 -0800 (PST) (envelope-from dpd@raffles-it.com) Received: from arrow.lan.raffles-it.com (localhost [127.0.0.1]) by gate.raffles-it.com (8.12.6/8.12.6) with ESMTP id gBV0Ii1X010907 for ; Tue, 31 Dec 2002 00:18:44 GMT (envelope-from dpd@lan.raffles-it.com) Received: (from dpd@localhost) by arrow.lan.raffles-it.com (8.12.6/8.12.6/Submit) id gBV0Ih0S010906; Tue, 31 Dec 2002 00:18:43 GMT Date: Tue, 31 Dec 2002 00:18:37 +0000 From: David Dooley To: questions@FreeBSD.ORG Subject: Using syslog to seperate out log messages Message-Id: <20021231001837.2d75937b.dpd@raffles-it.com> X-Mailer: Sylpheed version 0.8.6claws (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.6R2pnE5Y2bm:5," Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.6R2pnE5Y2bm:5, Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, I have a small problem, well more of an annoyance than anything, but I was hoping that someone would be able to solve it for me. I have an Internet connection from Demon in the UK and I am using a D-Link DSL-300G+ ADSL modem to connect via. This device uses DHCP to request the network configuration from Demon and then offers it via DHCP to my firewall system. This all work fine and I am now in the process of securing the link with ipfw. Now it would appear the the D-Link box advertises the connection information to the firewall every 30 seconds or so with the following entries Dec 31 00:07:21 gate dhclient: New Network Number: 62.49.18.0 Dec 31 00:07:21 gate dhclient: New Broadcast Address: 62.49.18.255 Dec 31 00:07:50 gate dhclient: New Network Number: 62.49.18.0 Dec 31 00:07:50 gate dhclient: New Broadcast Address: 62.49.18.255 Dec 31 00:08:19 gate dhclient: New Network Number: 62.49.18.0 Dec 31 00:08:19 gate dhclient: New Broadcast Address: 62.49.18.255 as you can see I get quite a lot of this rubbish in the 'messages' file and I would like to move all the dhclient traffic into another log file that I can truncate/remove/ignore on a regular basis. When I try and direct the above entries with a line like !+dhclient *.* /var/log/dhclient.log or !dhclient *.* /var/log/dhclient.log or !-dhclient *.* /var/log/dhclient.log The above traffic still occurs but now I get the following additional messages every 30 seconds or so in the new file Dec 31 00:06:53 gate dhclient: DHCPREQUEST on fxp0 to 62.49.18.138 port 67 Dec 31 00:06:53 gate dhclient: DHCPACK from 62.49.18.138 Dec 31 00:06:53 gate dhclient: New Network Number: 62.49.18.0 Dec 31 00:06:53 gate dhclient: New Broadcast Address: 62.49.18.255 Dec 31 00:06:53 gate dhclient: bound to 62.49.18.137 -- renewal in 28 seconds. Can any one tell me how to stop these messages in the 'messages' file? Thanks for your time David -- David Dooley dpd@raffles-it.com --=.6R2pnE5Y2bm:5, Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+EOJjiTCzTVFwd6wRAokfAJ0RQm4pt2zJG5LREbNSUVdDEQ8F6wCg/tIP lDzWPiv1Cprt9NF6igHCNAk= =8rKm -----END PGP SIGNATURE----- --=.6R2pnE5Y2bm:5,-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message