From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 14:14:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5709E16A4E0 for ; Tue, 18 Jul 2006 14:14:42 +0000 (UTC) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [70.28.254.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1369543D58 for ; Tue, 18 Jul 2006 14:13:53 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from localhost (localhost [127.0.0.1]) by gabby.gsicomp.on.ca (Postfix) with ESMTP id CBAA7629C; Tue, 18 Jul 2006 10:55:55 -0400 (EDT) Received: from unknown by localhost (amavisd-new, unix socket) id client-kOEkEK26; Tue, 18 Jul 2006 10:55:36 -0400 (EDT) Received: from webmail.gsicomp.on.ca (localhost [127.0.0.1]) by gabby.gsicomp.on.ca (Postfix) with ESMTP id 301D560F4; Tue, 18 Jul 2006 10:55:36 -0400 (EDT) Received: from 192.168.0.1 (SquirrelMail authenticated user matt@gsicomp.on.ca) by webmail.gsicomp.on.ca with HTTP; Tue, 18 Jul 2006 10:55:36 -0400 (EDT) Message-ID: <3902.192.168.0.1.1153234536.squirrel@webmail.gsicomp.on.ca> In-Reply-To: <17596.26134.831813.158138@canoe.dclg.ca> References: <17596.26134.831813.158138@canoe.dclg.ca> Date: Tue, 18 Jul 2006 10:55:36 -0400 (EDT) From: matt@gsicomp.on.ca To: "David Gilbert" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at gsicomp.on.ca Cc: freebsd-hackers@freebsd.org Subject: Re: On the use of Tun interfaces. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 14:14:42 -0000 > The man pages of if_tun are out-of-date in some respects, but with > comments from the group and reading the sources of ppp, I have worked > around most of the problems I've found. However, I'm stuck with one > quandry. My tunnel setup process produces the following: > > tun0: flags=8051 mtu 1500 > inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5 > inet 192.168.12.2 --> 192.168.22.1 netmask 0xffffffff > Opened by PID 86506 > > but then I ask: > > [3:14:314]dgilbert@canoe:~/devel/failsafe> route get 192.168.22.1 > route to: 192.168.22.1 > destination: default > mask: default > gateway: strike1 > interface: bge0 > > and indeed: > > [3:15:315]dgilbert@canoe:~/devel/failsafe> netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default xx.yy.zz.33 UGS 0 1629642 bge0 > xx.yy.zz.32/27 link#1 UC 0 0 bge0 > xx.yy.zz.33 00:80:c8:c9:22:31 UHLW 2 16 bge0 1046 > 127.0.0.1 127.0.0.1 UH 0 4111852 lo0 > 192.168.22.1 192.168.12.2 UH 0 0 tun0 > > shouldn't the last route there be active? Any clues here? Have you set net.inet.ip.forwarding=1 via sysctl? -- Matt Emmerton