From owner-freebsd-questions@FreeBSD.ORG Tue Nov 15 04:54:26 2005 Return-Path: X-Original-To: freebsd-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 9BF3416A41F for ; Tue, 15 Nov 2005 04:54:26 +0000 (GMT) (envelope-from ross.penner@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8E3243D6E for ; Tue, 15 Nov 2005 04:54:20 +0000 (GMT) (envelope-from ross.penner@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so862605wra for ; Mon, 14 Nov 2005 20:54:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:to:subject:references:from:content-type:mime-version:content-transfer-encoding:message-id:in-reply-to:user-agent; b=KX+6M+7lwfa9F0LiJlS6egznpnxzQ9+Ekini5g62KfCPEVBJb099UOCYWq+8dc/yOpoYyA5sbEWi9v4YKIP0zQgXXsLSk7wV0lncAAN35qs/86C28pFK9ar10FKS1mM4Y59SQiorHjRNHVN7gFG41CL7g31dFwgSJ5kJM96StMY= Received: by 10.54.109.9 with SMTP id h9mr3364097wrc; Mon, 14 Nov 2005 20:54:19 -0800 (PST) Received: from ross.inet ( [205.250.255.161]) by mx.gmail.com with ESMTP id g3sm1798892wra.2005.11.14.20.54.18; Mon, 14 Nov 2005 20:54:19 -0800 (PST) Date: Mon, 14 Nov 2005 20:54:15 -0800 To: "freebsd-questions@freebsd.org" References: From: ross Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera M2/8.50 (FreeBSD, build 1358) Subject: Re: pptp connection to university VPN 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: Tue, 15 Nov 2005 04:54:26 -0000 On Mon, 14 Nov 2005 10:02:36 -0800, ross wrote: > In order to use the resources of my library, I was hoping to connect to > it's VPN. The online guide provided is at > http://www.itservices.ubc.ca/support/service/vpn.html > > I also found a diary entry http://www.freebsddiary.org/pptp.php > > I followed the diary pretty much exactly using the general linux guide > on the ubc.ca website as a guide and the connection failed. the > /var/log/ppp is: > > Nov 14 08:59:17 ross ppp[2125]: Phase: Using interface: tun0 > Nov 14 08:59:17 ross ppp[2125]: Phase: deflink: Created in closed state > Nov 14 08:59:20 ross ppp[2125]: Warning: The alias command is deprecated > Nov 14 08:59:20 ross ppp[2125]: Phase: PPP Started (direct mode). > Nov 14 08:59:20 ross ppp[2125]: Phase: bundle: Establish > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: closed -> opening > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: Connected! > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: opening -> carrier > Nov 14 08:59:20 ross ppp[2125]: Phase: Signal 15, terminate. > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: Disconnected! > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: Connect time: 0 secs: 0 > octets i > n, 0 octets out > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: 0 packets in, 0 packets > out > Nov 14 08:59:20 ross ppp[2125]: Phase: total 0 bytes/sec, peak 0 > bytes/sec on M > on Nov 14 08:59:20 2005 > Nov 14 08:59:20 ross ppp[2125]: Phase: deflink: carrier -> closed > Nov 14 08:59:20 ross ppp[2125]: Phase: bundle: Dead > Nov 14 08:59:20 ross ppp[2125]: Phase: PPP Terminated (normal). > > I'm guessing that the problem has something to do with the requirement > of mppe128 or mppe-stateless. Browsing the mailing list archive and the > internet failed to help me. Can somebody out there help please? > > Thanks > I've further deduced I might be able to solve my problem with mpd instead of ptppclient. I still can't connect though and I'm unsure why. My mpd.conf file: vpn: new -i ng0 vpn vpn #set iface disable on-demand #set iface addrs 192.168.1.1 192.168.2.1 set iface idle 0 # disconnect the client after 8 hours set iface session 28800 set iface route default set bundle disable multilink set bundle authname "username" #Yes, I changed these from the defaults ;) set bundle password "password" set link yes acfcomp protocomp # set link no pap set link enable chap set link mtu 1460 # If remote machine is NT you need this.. # set link enable no-orig-auth set link keep-alive 10 75 set ipcp yes vjcomp # set ipcp ranges 192.168.1.1/32 192.168.2.1/32 # # The five lines below enable Microsoft Point-to-Point encryption # (MPPE) using the ng_mppc(8) netgraph node type. # set bundle enable compression set ccp yes mppc # set ccp yes mpp-e40 set ccp yes mpp-e128 set bundle enable crypt-reqd set ccp yes mpp-stateless open My mdb.links file: vpn: set link type pptp set pptp self roscar.dyndns.org set pptp peer vpn.ubc.ca set pptp enable originate incoming outcall When I run the command 'mpd vpn' I get the following output: Multi-link PPP for FreeBSD, by Archie L. Cobbs. Based on iij-ppp, by Toshiharu OHNO. mpd: pid 769, version 3.18 (root@ross.inet 13:46 14-Nov-2005) [vpn] ppp node is "mpd769-vpn" [vpn] using interface ng0 [vpn] IFACE: Open event [vpn] IPCP: Open event [vpn] IPCP: state change Initial --> Starting [vpn] IPCP: LayerStart [vpn:vpn] [vpn] bundle: OPEN event in state CLOSED [vpn] opening link "vpn"... [vpn] link: OPEN event [vpn] LCP: Open event [vpn] LCP: state change Initial --> Starting [vpn] LCP: LayerStart [vpn] device: OPEN event in state DOWN pptp0: connecting to 142.103.203.46:1723 [vpn] device is now in state OPENING pptp0: connected to 142.103.203.46:1723 pptp0: attached to connection with 142.103.203.46:1723 pptp0-0: outgoing call connected at 64000 bps [vpn] PPTP call successful [vpn] device: UP event in state OPENING [vpn] device is now in state UP [vpn] link: UP event [vpn] link: origination is local [vpn] LCP: Up event [vpn] LCP: state change Starting --> Req-Sent [vpn] LCP: phase shift DEAD --> ESTABLISH [vpn] LCP: SendConfigReq #1 ACFCOMP PROTOCOMP MRU 1500 MAGICNUM 65a6a3ea AUTHPROTO CHAP MSOFTv2 [vpn] LCP: SendConfigReq #2 ACFCOMP PROTOCOMP MRU 1500 MAGICNUM 65a6a3ea AUTHPROTO CHAP MSOFTv2 [vpn] LCP: rec'd Configure Nak #2 link 0 (Req-Sent) AUTHPROTO CHAP MD5 [vpn] LCP: SendConfigReq #3 ACFCOMP PROTOCOMP MRU 1500 MAGICNUM 65a6a3ea AUTHPROTO CHAP MD5 [vpn] LCP: rec'd Configure Ack #3 link 0 (Req-Sent) ACFCOMP PROTOCOMP MRU 1500 MAGICNUM 65a6a3ea AUTHPROTO CHAP MD5 [vpn] LCP: state change Req-Sent --> Ack-Rcvd [vpn] LCP: rec'd Configure Request #246 link 0 (Ack-Rcvd) MRU 1500 ACCMAP 0x000a0000 AUTHPROTO CHAP MSOFTv2 MAGICNUM 115b55e9 PROTOCOMP ACFCOMP [vpn] LCP: SendConfigAck #246 MRU 1500 ACCMAP 0x000a0000 AUTHPROTO CHAP MSOFTv2 MAGICNUM 115b55e9 PROTOCOMP ACFCOMP [vpn] LCP: state change Ack-Rcvd --> Opened [vpn] LCP: phase shift ESTABLISH --> AUTHENTICATE [vpn] LCP: auth: peer wants CHAP, I want CHAP [vpn] CHAP: sending CHALLENGE [vpn] LCP: LayerUp [vpn] LCP: rec'd Terminate Request #247 link 0 (Opened) [vpn] LCP: state change Opened --> Stopping [vpn] LCP: phase shift AUTHENTICATE --> TERMINATE [vpn] LCP: SendTerminateAck #4 [vpn] LCP: LayerDown pptp0-0: peer call disconnected res=admin action err=none pptp0-0: killing channel [vpn] PPTP call terminated pptp0: closing connection with 142.103.203.46:1723 [vpn] device: DOWN event in state UP [vpn] device is now in state DOWN [vpn] link: DOWN event [vpn] LCP: Down event [vpn] LCP: state change Stopping --> Starting [vpn] LCP: phase shift TERMINATE --> DEAD [vpn] device: OPEN event in state DOWN [vpn] pausing 9 seconds before open [vpn] device is now in state DOWN pptp0: killing connection with 142.103.203.46:1723 ^Cmpd: caught fatal signal int mpd: fatal error, exiting [vpn] IPCP: Down event [vpn] IFACE: Close event [vpn] IPCP: Close event [vpn] IPCP: state change Starting --> Initial [vpn] IPCP: LayerFinish mpd: process 769 terminated I'm sure there is some fault on my end, but my inexperience is blinding me. hopefully this more detailed assesment will get a response. -- What time is it? Dodgeball Time!