From owner-freebsd-questions@FreeBSD.ORG Wed May 19 15:59:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47559106566B for ; Wed, 19 May 2010 15:59:39 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from smtp3.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id 1D0788FC17 for ; Wed, 19 May 2010 15:59:38 +0000 (UTC) Received: (qmail 12686 invoked from network); 19 May 2010 08:59:52 -0700 Received: by simscan 1.1.0 ppid: 12646, pid: 12649, t: 2.2179s scanners: regex: 1.1.0 attach: 1.1.0 spam: 3.1.7-deb X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on smtp3.int.surewest.net. X-Spam-Level: * X-Spam-Status: No, score=1.4 required=13.5 tests=RATWARE_GECKO_BUILD autolearn=disabled version=3.1.7-deb X-Spam-CMAE-Analysis: v=1.0 c=1 a=wbKXeunVgZ0A:10 a=VphdPIyG4kEA:10 a=8nJEP1OIZ-IA:10 a=MuQI5dkTAAAA:8 a=6I5d2MoRAAAA:8 a=k9p_mN-yDG5RCzsq-FoA:9 a=eXxqzZlzmw-QPhhWzxEA:7 a=EYFLAG5GXytjVgn9Qpy6JnFfzJUA:4 a=wPNLvfGTeEIA:10 Received: from unknown (HELO blacklamb.mykitchentable.net) (69.62.230.77) by smtp3 with SMTP; 19 May 2010 08:59:50 -0700 Received: from [127.0.0.1] (bigdaddy.mykitchentable.net [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTPS id BDE68165920 for ; Wed, 19 May 2010 08:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mykitchentable.net; s=default; t=1274284777; bh=hDjeg2TZbGLzjGsPSsKSwjIt8/ILCYwA82RcBlYLr6M=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=yEmhX48Y33MSYajgAYBo0Q3k+gpTjWQ20NclL5cS749HLFaXVVfoa/eoEBnekKBU4 3WSTFnsjNzWdy/f2jya76ytfZy6hwmT6uTxxn8H71cxvtoyF2UIgHMSkYluu2rU73x cfeqN5kEzB+N917ILig2B+MWUGsXFeZok+oFsE3I= Message-ID: <4BF40AC5.8010509@mykitchentable.net> Date: Wed, 19 May 2010 08:59:01 -0700 From: Drew Tomlinson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 100519-0, 05/19/2010), Outbound message X-Antivirus-Status: Clean Subject: Help With pptpclient Setup 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: Wed, 19 May 2010 15:59:39 -0000 I'm using FBSD 8.0-STABLE and trying to connect to a Cisco VPN at work. Windows PCs connect with the basic Microsoft dial-up networking client. Thus I assume pptpclient is my answer for FBSD. My work network is a class B but it's used as 254 class C networks. The vpn server address is part of that class B network. The VPN server gives me a class C address. Let's use these addresses as an example: 10.0.18.10 is the VPN server 10.0.206.150/24 is the IP address my client will be given 10.0.0.0/16 is my entire work network. I've followed examples at http://www.freebsddiary.org/pptp.php and http://www.freebsd.org/doc/en/books/handbook/userppp.html. My ppp.conf file looks like this: default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) WORK: set authname myusername set authkey mypassword set timeout 0 set ifaddr 0 0 add 10.0.206.0/24 HISADDR alias enable yes /var/log/message shows this when trying to make a connection: May 19 08:50:34 vm pptp[89300]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated May 19 08:50:34 vm pptp[89305]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' May 19 08:50:34 vm pptp[89305]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply May 19 08:50:34 vm pptp[89305]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. May 19 08:50:35 vm pptp[89305]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' May 19 08:50:35 vm pptp[89305]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. May 19 08:50:35 vm pptp[89305]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 34636). May 19 08:50:36 vm kernel: tun0: link state changed to UP May 19 08:50:36 vm ppp[89300]: tun0: Warning: The alias command is deprecated May 19 08:51:35 vm pptp[89305]: anon log[logecho:pptp_ctrl.c:677]: Echo Request received. May 19 08:51:35 vm pptp[89305]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 6 'Echo-Reply' The above lasts for a minute or two and then: May 19 08:52:56 vm pptp[89305]: anon log[pptp_read_some:pptp_ctrl.c:551]: read error: Operation timed out May 19 08:52:56 vm pptp[89305]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown) May 19 08:52:56 vm pptp[89305]: anon log[pptp_send_ctrl_packet:pptp_ctrl.c:622]: write error: Broken pipe May 19 08:52:56 vm pptp[89305]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state) May 19 08:52:56 vm pptp[89305]: anon log[pptp_read_some:pptp_ctrl.c:551]: read error: Bad file descriptor May 19 08:52:56 vm ppp[89300]: tun0: Warning: deflink: Unable to set physical to speed 0 May 19 08:52:56 vm ppp[89300]: tun0: Warning: deflink: Unable to set physical to speed 0 May 19 08:52:56 vm ppp[89300]: tun0: Warning: deflink: tcsetattr: Unable to restore device settings May 19 08:52:56 vm kernel: tun0: link state changed to DOWN May 19 08:52:56 vm kernel: pid 89305 (pptp), uid 0: exited on signal 11 (core dumped) Before core dump above, route table shows: # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.2 UGS 8 2203286 em0 127.0.0.1 link#6 UH 0 44531 lo0 10.0.18.10 link#7 UHS 0 176240 tun0 10.0.206.0/24 159.145.18.10 UGS 0 0 tun0 10.0.206.150 link#7 UHS 0 0 lo0 192.168.1.0/24 link#2 U 6 10627552 em0 192.168.1.6 link#2 UHS 0 0 lo0 And ifconfig shows tun0 as: tun0: flags=8051 metric 0 mtu 1498 options=80000 inet 10.0.206.150 --> 10.0.18.10 netmask 0xffffffff Opened by PID 89300 So what am I doing wrong? I suspect routing is an issue. Wouldn't I need a route that points all 10.0.0.0/16 traffic to tun0 but another route that specifically sends 10.0.18.10/32 to my default gateway of 192.168.1.2? And if so, how do I properly specify that in my ppp.conf? Thanks, Drew