From owner-freebsd-questions Sun Nov 4 15:46:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.toronto.istar.net (mail1.toronto.istar.net [209.89.75.17]) by hub.freebsd.org (Postfix) with ESMTP id 5C6E837B416 for ; Sun, 4 Nov 2001 15:46:45 -0800 (PST) Received: from d141-119-162.home.cgocable.net ([24.141.119.162] helo=x1-6-00-50-ba-de-36-33.kico1.on.home.com) by mail1.toronto.istar.net with esmtp (Exim 2.02 #1) id 160WyQ-0006nK-00; Sun, 4 Nov 2001 18:46:42 -0500 Received: from localhost (genisis@localhost) by x1-6-00-50-ba-de-36-33.kico1.on.home.com (8.11.6/8.11.6) with ESMTP id fA4Nr2q95960; Sun, 4 Nov 2001 18:53:03 -0500 (EST) (envelope-from genisis@istar.ca) X-Authentication-Warning: x1-6-00-50-ba-de-36-33.kico1.on.home.com: genisis owned process doing -bs Date: Sun, 4 Nov 2001 18:53:02 -0500 (EST) From: Dru X-X-Sender: To: Sean Ellis Cc: Subject: Re: ipfw script values In-Reply-To: <20011104153817.A275@telus.net> Message-ID: <20011104185024.E95918-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Sun, 4 Nov 2001, Sean Ellis wrote: > Hello, > > I edited a general-purpose firewall rule script and use it on > a dual homed machine. It provides nat and filtering. My question > is, right now I have the value for the external interface ip number > 'hard-wired' into the script. No problem, but the machine picks up > this number via dhcp, so I'd like to have something a little more > dynamic here. Does anyone have a suggestion for a nice neat way to > grab this and the network, and mask values. Are they available anywhere > in a convenient user-friendly form? Hi Sean, If you're using FreeBSD 4.3 or above, you can use the "me" keyword. However, there is a security advisory (SA-01:53) which may affect you if your system is older than August 17th. Dru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message