From owner-freebsd-questions@FreeBSD.ORG Sat Mar 29 08:10:46 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 93FFF37B401 for ; Sat, 29 Mar 2003 08:10:46 -0800 (PST) Received: from smtp.comcast.net (smtp-out.comcast.net [24.153.64.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE8AD43FBD for ; Sat, 29 Mar 2003 08:10:45 -0800 (PST) (envelope-from marco@radzinschi.com) Received: from radzinschi.com (pcp02453672pcs.owngsm01.md.comcast.net [68.55.91.96]) by mtaout08.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HCI0038GQ98DX@mtaout08.icomcast.net> for freebsd-questions@freebsd.org; Sat, 29 Mar 2003 11:10:21 -0500 (EST) Received: from localhost (marco@localhost.radzinschi.com [127.0.0.1]) by radzinschi.com (8.12.8/8.12.8) with ESMTP id h2TGAKP9070263; Sat, 29 Mar 2003 11:10:20 -0500 (EST envelope-from marco@radzinschi.com) Date: Sat, 29 Mar 2003 11:10:20 -0500 (EST) From: Marco Radzinschi In-reply-to: <20030329122736.GA29797@bsdsi.homeunix.com> To: Martin Moeller Message-id: <20030329110851.W70255-100000@radzinschi.com> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE cc: FreeBSD Questions Subject: Re: 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 16:11:18 -0000 On Sat, 29 Mar 2003, Martin Moeller wrote: > 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=F6ller http://www.bsdsi.com/ > GnuPG/PGP DSA ID: 0x3C979285 ICQ # 82221572 > I do not accept unsolicited commercial mail. Do not spam me! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > ext_if=3Dtun0 ext_if_address=3D`ifconfig $ext_if | grep "inet " | awk '{print $2}'` Marco Radzinschi marco@radzinschi.com "Among those who dislike oppression are many who like to oppress." - Napoleon Bonaparte