From owner-freebsd-questions@FreeBSD.ORG Sat Mar 29 04:28:55 2003 Return-Path: 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 7C69C37B401 for ; Sat, 29 Mar 2003 04:28:55 -0800 (PST) Received: from bsdsi.homeunix.com (c171108.adsl.hansenet.de [213.39.171.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B07943FA3 for ; Sat, 29 Mar 2003 04:28:53 -0800 (PST) (envelope-from mm@bsdsi.com) Received: from bsdsi.homeunix.com (localhost [127.0.0.1]) by bsdsi.homeunix.com (8.12.8/8.12.8) with ESMTP id h2TCRbDD029824 for ; Sat, 29 Mar 2003 13:27:37 +0100 (CET) (envelope-from mm@bsdsi.com) Received: (from mm@localhost) by bsdsi.homeunix.com (8.12.8/8.12.8/Submit) id h2TCRbdo029823 for freebsd-questions@freebsd.org; Sat, 29 Mar 2003 13:27:37 +0100 (CET) X-Authentication-Warning: bsdsi.homeunix.com: mm set sender to mm@bsdsi.com using -f Date: Sat, 29 Mar 2003 13:27:37 +0100 From: Martin Moeller To: FreeBSD Questions Message-ID: <20030329122736.GA29797@bsdsi.homeunix.com> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Priority: normal X-Operating-System: FreeBSD CURRENT, http://www.freebsd.org/ X-Mailer: Mutt 1.5.3i, http://www.mutt.org/ X-PGP: Send mail with subject 'send key pub' for public key! X-Location: Hamburg, Germany, European Union X-Uptime: 1:20pm up 3:39, 3 users, load averages: 0,18 0,06 0,09 User-Agent: Mutt/1.5.4i Subject: Determine ip address on tun0 for use with ipfw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2003 12:28:57 -0000 Hello, list! I just read some documentation on ipfw, and also found example configuration files that can be used as a template. Now, I'm sitting in front of such a file and want to adapt it for my needs. But the first problem is already there: The file uses variables for the inside and outside interfaces. The inside interface is clear: It uses a normal 192.168.. address. But the outside interface is a DSL modem. The ethernet card is vr0 and uses 10.0.0.1, but the actual interface needed here is tun0 which gets a new ip address every time the PPP connection is established. How can I get my ip address into my rc.firewall script? Regards, Martin -- Martin Möller http://www.bsdsi.com/ GnuPG/PGP DSA ID: 0x3C979285 ICQ # 82221572 I do not accept unsolicited commercial mail. Do not spam me!