From owner-freebsd-stable Wed Jun 19 16: 8:11 2002 Delivered-To: freebsd-stable@freebsd.org Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by hub.freebsd.org (Postfix) with ESMTP id 2E97B37B406 for ; Wed, 19 Jun 2002 16:08:01 -0700 (PDT) Received: from mfg1.cim.alcatel.com.au (localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.1/8.12.1/Alcanet1.2) with ESMTP id g5JN7vEd006140; Thu, 20 Jun 2002 09:07:57 +1000 Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37640) with ESMTP id <01KJ5CLJC2C08XDTC1@cim.alcatel.com.au>; Thu, 20 Jun 2002 09:07:55 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.3/8.12.3) with ESMTP id g5JN7rru040875; Thu, 20 Jun 2002 09:07:53 +1000 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.3/8.12.3/Submit) id g5JN7rZ3040874; Thu, 20 Jun 2002 09:07:53 +1000 (EST) Content-return: prohibited Date: Thu, 20 Jun 2002 09:07:52 +1000 From: Peter Jeremy Subject: Re: IPFW rules on tunX devices In-reply-to: <20020619010325.A29725@Odin.AC.HMC.Edu>; from brooks@one-eyed-alien.net on Wed, Jun 19, 2002 at 01:03:26AM -0700 To: Brooks Davis Cc: freebsd-stable@FreeBSD.ORG Mail-Followup-To: Brooks Davis , freebsd-stable@FreeBSD.ORG Message-id: <20020620090752.E438@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5.1i References: <20020619165721.B438@gsmx07.alcatel.com.au> <20020619010325.A29725@Odin.AC.HMC.Edu> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Jun-19 01:03:26 -0700, Brooks Davis wrote: >On Wed, Jun 19, 2002 at 04:57:21PM +1000, Peter Jeremy wrote: >> In 4.6-RELEASE, the tun devices are created on demand and so tun0 >> doesn't exist don't exist when the firewall rules are added. Other >> than starting ppp(8), how do I create tun0? I thought >> ifconfig tun0 create >> would work, but that returns: >> ifconfig: SIOCIFCREATE: Invalid argument ... >On current the following signficantly less gross shell >works: > >echo "" >> /dev/tun0 I did some further experimenting and independently came to the same conclusion. I also think this is a hack. >IMO, the long term solution it to fix the tun(4) driver to use interface >cloning like gif(4) so you can do "ifconfig tun0 create" as necessicary. Agreed. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message