From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 06:56:32 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 EB62B16A4CE for ; Tue, 29 Jun 2004 06:56:32 +0000 (GMT) Received: from garbage.relinfo.ru (garbage.relinfo.ru [195.161.208.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAF7F43D1D for ; Tue, 29 Jun 2004 06:56:32 +0000 (GMT) (envelope-from levanty@mari-el.ru) Received: from lion.relinfo.ru ([195.161.208.133]) by garbage.relinfo.ru with esmtp (Exim 4.10) id 1BfCYe-00008Q-00; Tue, 29 Jun 2004 10:57:32 +0400 Date: Tue, 29 Jun 2004 10:57:48 +0400 From: Lev Klimin X-Mailer: The Bat! (v1.61) Organization: VolgaTelecom X-Priority: 3 (Normal) Message-ID: <176663674734.20040629105748@mari-el.ru> To: freebsd-questions@freebsd.org In-Reply-To: <20040629053306.GA1160@shark.localdomain> References: <122656749812.20040629090223@mari-el.ru> <20040629053306.GA1160@shark.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Subject: Re[2]: constant tun interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lev Klimin List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 06:56:33 -0000 Добрый день, Sergey! SZ> On Tue, Jun 29, 2004 at 09:02:23AM +0400, SZ> Lev Klimin probably wrote: >> Hello! >> >> 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 >> [8:48:04][~]:garbage# ifconfig >> fxp0: flags=8843 mtu 1500 >> inet 195.161.208.151 netmask 0xffffffc0 broadcast 195.161.208.191 >> ether 00:a0:c9:4b:09:29 >> media: Ethernet 10baseT/UTP >> status: active >> fxp1: flags=8843 mtu 1500 >> inet 172.16.0.9 netmask 0xfffffff8 broadcast 172.16.0.15 >> ether 00:a0:c9:b6:59:a1 >> media: Ethernet autoselect (100baseTX ) >> status: active >> lo0: flags=8049 mtu 16384 >> inet 127.0.0.1 netmask 0xff000000 >> ppp0: flags=8010 mtu 1500 >> faith0: flags=8002 mtu 1500 >> [8:48:09][~]:garbage# >> >> 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? SZ> Maybe you could do some ifconfig(8) magic, but you definitely could use SZ> ppp's built-in NAT (by inlcuding `nat enable yes' in the config file). SZ> HTH, Initialization of ipnat is done earlier than rc.network script is running. Therefore, I need some other feature. How does ppp and faith interfaces are in ifconfig in startup? Can I do same thing with tun interface. -- Lev Klimin mailto:levanty@mari-el.ru (8362) 42-15-49