From owner-freebsd-questions@FreeBSD.ORG Thu Sep 8 20:28:58 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 5906216A41F for ; Thu, 8 Sep 2005 20:28:58 +0000 (GMT) (envelope-from pgollucci@p6m7g8.com) Received: from piccollo.p6m7g8.net (c66-236-219-70.ip.panth.com [66.236.219.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9B0143D46 for ; Thu, 8 Sep 2005 20:28:57 +0000 (GMT) (envelope-from pgollucci@p6m7g8.com) Received: from [192.168.0.203] (pcp09579105pcs.rtchrd01.md.comcast.net [69.244.86.63]) (authenticated bits=0) by piccollo.p6m7g8.net (8.13.4/8.13.4) with ESMTP id j88KSurc037112 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Thu, 8 Sep 2005 16:28:59 -0400 (EDT) (envelope-from pgollucci@p6m7g8.com) Message-ID: <43209F06.2080008@p6m7g8.com> Date: Thu, 08 Sep 2005 16:28:54 -0400 From: "Philip M. Gollucci" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: rcordova@liquidation.com Subject: 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: Thu, 08 Sep 2005 20:28:58 -0000 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? Thanks in advance -- END ------------------------------------------------------------ What doesn't kill us can only make us stronger. Nothing is impossible. Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198 Consultant / http://p6m7g8.net/Resume/ Senior Developer / Liquidity Services, Inc. http://www.liquidityservicesinc.com http://www.liquidation.com http://www.uksurplus.com http://www.govliquidation.com http://www.gowholesale.com