From owner-freebsd-questions Wed Sep 26 12:39:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-57-209.knology.net [24.214.57.209]) by hub.freebsd.org (Postfix) with ESMTP id 9CF2737B405 for ; Wed, 26 Sep 2001 12:39:28 -0700 (PDT) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.11.6/8.11.6) id f8QJcbS21988; Wed, 26 Sep 2001 14:38:37 -0500 (CDT) (envelope-from dkelly) Date: Wed, 26 Sep 2001 14:38:36 -0500 From: David Kelly To: mario Cc: scott@smnolde.com, freebsd-questions@FreeBSD.ORG Subject: Re: dhcp & cable, @home (help me fight the MS monopoly) Message-ID: <20010926143836.A21942@grumpy.dyndns.org> References: <20010926125951.E19847-100000@bsd.smnolde.com> <010c01c146ae$82867bf0$1ea5190a@Compilar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <010c01c146ae$82867bf0$1ea5190a@Compilar>; from admin@tecdigital.net on Wed, Sep 26, 2001 at 12:13:06PM -0500 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 On Wed, Sep 26, 2001 at 12:13:06PM -0500, mario wrote: > Read /sbin/dhclient-script (its a text file) > > You can add this to /etc/dhclient-exit-hooks: > #!/bin/sh > > > and then chmod +x /etc/dhclient-exit-hooks You don't want to restart your firewall every time dhclient runs dhclient-exit-hooks as it will often run it several times on a renewal. I suggest you start with an exit-hook script something like this to scope out how dhclient uses it: #!/bin/sh ( date set echo ) >> /tmp/exit-hook-debug If I remember correctly there is a REASON variable explaining why the exit hook was called. Also may include old and new IP addresses. Based on the variables provided you can decide whether or not your firewall script needs to be re-run. Or ddup. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message