From owner-freebsd-bugs Sun Jul 14 11: 7:23 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 740A037B400; Sun, 14 Jul 2002 11:07:21 -0700 (PDT) Received: from smtp06.wxs.nl (smtp06.wxs.nl [195.121.6.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 176A243E31; Sun, 14 Jul 2002 11:07:20 -0700 (PDT) (envelope-from akruijff@dds.nl) Received: from cybertron.kruijff ([213.10.151.186]) by smtp06.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id GZ93O501.2R1; Sun, 14 Jul 2002 20:07:17 +0200 Date: Sun, 14 Jul 2002 20:07:03 +0200 From: Alex X-Mailer: The Bat! (v1.53d) Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <18432210796.20020714200703@dds.nl> To: Luigi Rizzo , cjc@FreeBSD.ORG Cc: freebsd-bugs@FreeBSD.org Subject: Re[2]: conf/36230: ipfw traffic shaper with DHCP env. In-Reply-To: <200207132149.g6DLnY0v057339@freefall.freebsd.org> References: <200207132149.g6DLnY0v057339@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello/Beste Luigi & Crist, Saturday, July 13, 2002, 11:49:34 PM, you wrote: CJC> From: "Crist J. Clark" CJC> To: Alex de Kruijff CJC> Cc: freebsd-gnats-submit@FreeBSD.ORG CJC> Subject: Re: conf/36230: ipfw traffic shaper with DHCP env. CJC> Date: Sat, 23 Mar 2002 18:42:51 -0800 CJC> CJC> On Sat, Mar 23, 2002 at 06:34:03AM -0800, Alex de Kruijff wrote: CJC> [snip] CJC> CJC> > I like to run a ipfw traffic shaper on a network with a DHCP server. The DHCP server updates the DNS with a given hostname (+ suffix). The ip-address the client receives can change in time but the hostname do not. The ipfw rules however keep the old values resulting in a rules that do not apply. CJC> > >How-To-Repeat: CJC> > # add alex to the DNS (nomaly you will let the DHCP do this for you) CJC> > CJC> > ipfw add 100 pipe 1 ip from alex to any via ed0 CJC> > ipfw add 200 pipe 2 ip from any to alex via ed0 CJC> > CJC> > # change the ip address of the host alex. CJC> > >Fix: CJC> > Save the URL, if given, instead of the ip-address. CJC> CJC> How often do you check that the hostname to IP address mapping has CJC> changed? For every packet? Way too expensive. Every minute? Every five CJC> minutes? Why not just run a cron job to update your rules then? Your right its to expensive. Maybe the DHCP can play a role in this. And else something for cron. Tanks for answering. (I'm a bit late on the response, sorry for that, but i didn't notice it earlier) LR> State-Changed-From-To: feedback->closed LR> State-Changed-By: luigi LR> State-Changed-When: Sat Jul 13 14:48:31 PDT 2002 LR> State-Changed-Why: LR> use "me" as suggested to specify the local host. "me" checks LR> the address against the list of interface addresses on each LR> incoming packet so it will detect changes. LR> http://www.freebsd.org/cgi/query-pr.cgi?pr=36230 Sorry but this will not work. Me is the server while the clients are added. I appreciate you effort anyhow. -- Best regards/Met vriendelijke groet, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message