From owner-freebsd-questions Tue Dec 12 20: 8:15 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 12 20:08:13 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-56-157.knology.net [24.214.56.157]) by hub.freebsd.org (Postfix) with ESMTP id 5814937B400 for ; Tue, 12 Dec 2000 20:08:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by grumpy.dyndns.org (8.11.1/8.11.1) with ESMTP id eBD487447484; Tue, 12 Dec 2000 22:08:08 -0600 (CST) (envelope-from dkelly@grumpy.dyndns.org) Message-Id: <200012130408.eBD487447484@grumpy.dyndns.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: freebsd-questions@freebsd.org Cc: "Tommy Forrest - KE4PYM" From: David Kelly Subject: Re: How to use simple firewall with DHCP? In-reply-to: Message from David Kelly of "Tue, 12 Dec 2000 21:33:27 CST." <200012130333.eBD3Xm402910@grumpy.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 12 Dec 2000 22:08:07 -0600 Sender: dkelly@grumpy.dyndns.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Kelly writes: > Then all you have to do is "sh /etc/rc.firewall" whenever dhclient > changes your IP address. To trap for changes by dhclient I think the > following will work (untried) if placed in /etc/dhclient-exit-hooks. > Not sure if the file needs to be chmod +x'ed. Shouldn't hurt if you > keep it rwx'able by root only. Update: /etc/dhclient-exit-hooks needs to be executable. But more work needs to be done on my ddup support as the way my script is written it will run ddup on every REBOOT because it doesn't know if the address changed or not. DynDNS specifically frowns on needless updates. -- 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