From owner-freebsd-questions@FreeBSD.ORG Sun Jul 4 19:39:40 2004 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 43F0A16A4CE for ; Sun, 4 Jul 2004 19:39:40 +0000 (GMT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D406B43D3F for ; Sun, 4 Jul 2004 19:39:39 +0000 (GMT) (envelope-from jeff+freebsd@jrpenn.demon.co.uk) Received: from jrpenn.demon.co.uk ([194.222.241.254]) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1BhCpq-000G7R-0Z for freebsd-questions@freebsd.org; Sun, 04 Jul 2004 20:39:38 +0100 Received: from jeff by jrpenn.demon.co.uk with local (Exim 4.34 (FreeBSD)) id 1BhCpY-0009dL-2q for freebsd-questions@freebsd.org; Sun, 04 Jul 2004 20:39:16 +0100 Received: by jrpenn.demon.co.uk (tmda-sendmail, from uid 1001); Sun, 04 Jul 2004 20:39:16 +0100 (BST) Date: Sun, 4 Jul 2004 20:39:15 +0100 To: freebsd-questions@freebsd.org Message-ID: <20040704193915.GB36949@jrpenn.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i From: Jeff Penn X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Subject: Re: constant tun interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jeff Penn List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 19:39:40 -0000 Lev Klimin : > I have little trouble. I have 4.10-release with ppp ant ipnat. On > startup ipnat reload it's rules with interface tun0 in statments which > is ppp's device. But before running ppp, there is no tun device in > system pppctl(8) includes some examples of how to achieve this. You will also need to configure rc.conf(5) to run the ppp daemon at start up. The solution is straightforward, I answered a similar question with more details on the newsgroup comp.unix.bsd.freebsd.misc. > Because of lack of tun interface, further ipnat rules don't work. I > can reload ipnat then ppp starting, and it's OK. Can I build my > kernel to make tun interface on startup sach as ppp interface? I build > my kernel with option > pseudo-device tun 1 #Tunnel driver (ppp(8), nos-tun(8)) > but after reboot I don't see tun interface in ifconfig output. Building tun0 into the kernel will have no effect. I prefer to use the module that is automatically loaded. jeff