From owner-freebsd-stable Thu Jun 20 0:59:43 2002 Delivered-To: freebsd-stable@freebsd.org Received: from atlantis.dp.ua (atlantis.dp.ua [193.108.46.1]) by hub.freebsd.org (Postfix) with ESMTP id 0B9B637B409 for ; Thu, 20 Jun 2002 00:59:24 -0700 (PDT) Received: from localhost (dmitry@localhost) by atlantis.dp.ua (8.11.1/8.11.1) with ESMTP id g5K7xEu83133 for ; Thu, 20 Jun 2002 10:59:15 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Thu, 20 Jun 2002 10:59:14 +0300 (EEST) From: Dmitry Pryanishnikov To: freebsd-stable@freebsd.org Subject: Re: IPFW rules on tunX devices In-Reply-To: <20020619165721.B438@gsmx07.alcatel.com.au.lucky.freebsd.stable> Message-ID: <20020620105712.A72467-100000@atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hello! On Wed, 19 Jun 2002, Peter Jeremy wrote: > I have a situation where I want to have some ipfw rules permanently > associated with tun0. In 4.5-RELEASE, I just included lines like the > following in the rules file specified as firewall_type in rc.conf: > add 11010 allow tcp from 10.2.3.4 to 10.2.3.5 keep-state in recv tun0 setup > > 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 I've added the following label to /etc/ppp/ppp.conf: dummy: quit Then the following command should generate tun0: ppp -foreground dummy 1>/dev/null 2>&1 Sincerely, Dmitry Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message