From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 15:31:49 2005 Return-Path: X-Original-To: questions@freebsd.org 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 203C216A41F for ; Fri, 9 Sep 2005 15:31:49 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id B098643D46 for ; Fri, 9 Sep 2005 15:31:48 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [208.206.151.59] (host59.gtisd.com[208.206.151.59]) by comcast.net (sccrmhc13) with ESMTP id <200509091531360130045csee>; Fri, 9 Sep 2005 15:31:47 +0000 Message-ID: <4321AAD7.5000701@computer.org> Date: Fri, 09 Sep 2005 10:31:35 -0500 From: Eric Schuele User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050908) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Philip M. Gollucci" References: <43209F06.2080008@p6m7g8.com> In-Reply-To: <43209F06.2080008@p6m7g8.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: rcordova@liquidation.com, questions@freebsd.org Subject: Re: pptp using tun0 to work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 15:31:49 -0000 Philip M. Gollucci wrote: > Hi, > > I'm on FreeBSD 5.4-RELEASE i386 > > pptpclient-1.5.0 installed via pkg_add -r > > GENERIC kernel for now. > > cat /etc/ppp/ppp.conf > LSI: > set authname pgollucci > set authkey xxxxxxxxxxx > set timeout 0 > set ifaddr 0 0 > add w.x.y.z/24 > alias enable yes > > as root user: > > route flush > route add default 192.168.0.1 > pptp w.x.y.z LSI & > netstat -nf -finet > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 192.168.0.1 UGS 0 289 em0 > 10.0.0.1 10.0.0.174 UH 0 0 tun0 > 127.0.0.1 127.0.0.1 UH 0 230 lo0 > 192.168.0 link#1 UC 0 0 em0 > 192.168.0.1 00:0d:88:41:25:a1 UHLW 1 2903 em0 1074 > > FYI: > 10.0.0.1 is the gateway/router there 10.0.0.174 is the IP dolled out me > automatically. > > so the first problem is that the second line is not a Gateway (G) > > so > route add -inet 10.0.0.0/24 10.0.0.174 > > netstat -nr -finet > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 192.168.0.1 UGS 1 385 em0 > 10/24 10.0.0.174 UGS 0 0 em0 > 10.0.0.1 10.0.0.174 UH 0 0 tun0 > 127.0.0.1 127.0.0.1 UH 0 230 lo0 > 192.168.0 link#1 UC 0 0 em0 > 192.168.0.1 00:0d:88:41:25:a1 UHLW 1 2903 em0 963 > > Okay that worked, but its on the wrong interface em0 and not tun0 and > even if its not, I can't > ping 10.0.0.1 or anything in the subnet. > > The ROUTE(8) man page is AWFUL here which is very unusual for FreeBSD. > Could greatly benefit from some actual examples. > I'd contribute them, but I obviously don't quite get it yet. > > Supposedly I'm supposed to use the -interface parameter but it doesn't > work in this experience. > > killall pptp > route flush > route add default 192.168.0.1 > pptp w.x.y.z LSI & > route add -inet 10.0.0.0/24 -interface tun0 10.0.0.174 > netstat -nr -finet > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 192.168.0.1 UGS 0 78 em0 > 10&0xa0000ae tun0 US 0 0 tun0 > 10.0.0.1 10.0.0.174 UH 0 0 tun0 > 127.0.0.1 127.0.0.1 UH 0 230 lo0 > 192.168.0 link#1 UC 0 0 em0 > 192.168.0.1 00:0d:88:41:25:a1 UHLW 1 2907 em0 1006 > > So that gave me a static not what I wanted I don't think and I still > can't ping anything. > > Here's a traceroute to a computer in it > traceroute 10.0.0.12 > traceroute to 10.0.0.12 (10.0.0.12), 64 hops max, 40 byte packets > 1 192.168.0.1 (192.168.0.1) 0.861 ms 0.717 ms 0.733 ms > > While I'm at it ... What the heck does 10&0xa0000ae mean ? > > Also, I've been told that going to other way, from the office-> me, I am > pingable. > > Any great ideas? see if the following helps: http://www.freebsd.org/cgi/getmsg.cgi?fetch=1290015+1295271+/usr/local/www/db/text/2005/freebsd-questions/20050904.freebsd-questions > > Thanks in advance > -- Regards, Eric