From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 05:44:10 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 0C28E16A4CE for ; Tue, 29 Jun 2004 05:44:10 +0000 (GMT) Received: from ns3.tele-kom.ru (ns3.tele-kom.ru [217.107.251.251]) by mx1.FreeBSD.org (Postfix) with SMTP id DD16C43D2D for ; Tue, 29 Jun 2004 05:44:08 +0000 (GMT) (envelope-from doublef@tele-kom.ru) Received: (qmail 24367 invoked from network); 29 Jun 2004 04:41:27 -0000 Received: from mx.tele-kom.ru (213.80.148.6) by ns.tele-kom.ru with SMTP; 29 Jun 2004 04:41:27 -0000 Received: (qmail 8923 invoked by uid 555); 29 Jun 2004 05:44:21 -0000 Received: from shark (213.80.148.209) by t-k.ru with TeleMail/2 id 1088487860-8901 for freebsd-questions@freebsd.org; Tue, 29 Jun 09:44:20 2004 +0400 (MSD) Received: by shark (Postfix, from userid 1000) id 64A9623C; Tue, 29 Jun 2004 09:33:07 +0400 (MSD) Date: Tue, 29 Jun 2004 09:33:07 +0400 From: Sergey Zaharchenko To: Lev Klimin Message-ID: <20040629053306.GA1160@shark.localdomain> Mail-Followup-To: Sergey Zaharchenko , Lev Klimin , freebsd-questions@freebsd.org References: <122656749812.20040629090223@mari-el.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <122656749812.20040629090223@mari-el.ru> User-Agent: Mutt/1.4.2.1i X-Listening-To: /Machina_Vremeni/Vneshtatniy_comandir_Zemli cc: freebsd-questions@freebsd.org Subject: Re: constant tun interface 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: Tue, 29 Jun 2004 05:44:10 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 29, 2004 at 09:02:23AM +0400, Lev Klimin probably wrote: > Hello! >=20 > 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=3D8843 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=3D8843 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=3D8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000=20 > ppp0: flags=3D8010 mtu 1500 > faith0: flags=3D8002 mtu 1500 > [8:48:09][~]:garbage#=20 >=20 > 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? Maybe you could do some ifconfig(8) magic, but you definitely could use ppp's built-in NAT (by inlcuding `nat enable yes' in the config file). HTH, --=20 DoubleF Everything is worth precisely as much as a belch, the difference being that a belch is more satisfying. -- Ingmar Bergman --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA4P8Swo7hT/9lVdwRAlduAJ9LOrps58hlxX0Qv6Tnmd++x2WVEgCfaskW fncVtbKaNSmNURnl9TOdz80= =l4m5 -----END PGP SIGNATURE----- --huq684BweRXVnRxX--