From owner-freebsd-net@FreeBSD.ORG Thu Oct 22 08:03:15 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2053106566C for ; Thu, 22 Oct 2009 08:03:15 +0000 (UTC) (envelope-from lonjaret@iram.fr) Received: from smtp.iram.fr (netsrv1.iram.fr [193.48.252.22]) by mx1.freebsd.org (Postfix) with ESMTP id 60FEA8FC14 for ; Thu, 22 Oct 2009 08:03:15 +0000 (UTC) Received: from smtp.iram.fr (localhost.localdomain [127.0.0.1]) by smtp.iram.fr (Postfix) with ESMTP id EB738268A35; Thu, 22 Oct 2009 09:46:54 +0200 (CEST) Received: from pctcp36.fr (pctcp36 [193.48.252.166]) by smtp.iram.fr (Postfix) with ESMTP id C69252688F0; Thu, 22 Oct 2009 09:46:54 +0200 (CEST) Message-ID: <95a7a803a4435ee1e8e7a161174994ae@iram.fr> To: freebsd-net@freebsd.org From: "Mathieu L." Date: Thu, 22 Oct 2009 09:46:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: problem with pptp, using mpd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 08:03:15 -0000 Hello, I am having trouble using mpd, I want to connect to a vpn with pptp (vpn service provided by relakks.com). Here is my configuration: mpd.conf: ######################### default: load relakks relakks: create bundle static B1 set iface route default set ipcp ranges 0.0.0.0/0 0.0.0.0/0 # Enable Microsoft Point-to-Point encryption (MPPE) set bundle enable compression set ccp yes mppc set mppc yes e128 set bundle enable crypt-reqd set mppc yes stateless create link static L1 pptp set link action bundle B1 # Enable both sides to authenticat each other with CHAP set auth disable internal set auth authname "lejatorn" set auth password "XXXXXXXX" set link no pap set link no eap set link yes chap set link mtu 1460 set link keep-alive 10 75 set link max-redial 0 # Configure PPTP and open link set pptp peer pptp.relakks.com set pptp disable windowing set link enable incoming open and here is the output when I start mpd5: process 88409 started, version 5.3 (root@XXXXX.XXX 20:41 20-Oct-2009) Label 'startup' not found [B1] Bundle: Interface ng0 created PPTP: waiting for connection on 0.0.0.0 1723 [L1] [L1] Link: OPEN event [L1] LCP: Open event [L1] LCP: state change Initial --> Starting [L1] LCP: LayerStart [L1] PPTP call successful [L1] LCP: Up event [L1] LCP: state change Starting --> Req-Sent [L1] LCP: SendConfigReq #1 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 200f22c0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: rec'd Configure Ack #1 (Req-Sent) [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 200f22c0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: state change Req-Sent --> Ack-Rcvd [L1] LCP: state change Ack-Rcvd --> Req-Sent [L1] LCP: SendConfigReq #2 [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 200f22c0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: rec'd Configure Ack #2 (Req-Sent) [L1] ACFCOMP [L1] PROTOCOMP [L1] ACCMAP 0x000a0000 [L1] MRU 1500 [L1] MAGICNUM 200f22c0 [L1] AUTHPROTO CHAP MSOFTv2 [L1] LCP: state change Req-Sent --> Ack-Rcvd [L1] LCP: rec'd Configure Request #1 (Ack-Rcvd) [L1] ACCMAP 0x00000000 [L1] AUTHPROTO CHAP MSOFTv2 [L1] MAGICNUM dc6a4d04 [L1] PROTOCOMP [L1] ACFCOMP [L1] LCP: SendConfigAck #1 [L1] ACCMAP 0x00000000 [L1] AUTHPROTO CHAP MSOFTv2 [L1] MAGICNUM dc6a4d04 [L1] PROTOCOMP [L1] ACFCOMP [L1] LCP: state change Ack-Rcvd --> Opened [L1] LCP: auth: peer wants CHAP, I want CHAP [L1] CHAP: sending CHALLENGE #1 len: 29 [L1] LCP: LayerUp [L1] CHAP: rec'd CHALLENGE #27 len: 30 [L1] Name: "localhost" [L1] CHAP: Using authname "lejatorn" [L1] CHAP: sending RESPONSE #27 len: 62 [L1] CHAP: rec'd RESPONSE #1 len: 63 [L1] Name: "localhost" [L1] AUTH: ran out of backends [L1] CHAP: Auth return status: failed [L1] CHAP: Reply message: E=691 R=0 M=Login incorrect [L1] CHAP: sending FAILURE #1 len: 31 [L1] LCP: authorization failed [L1] LCP: parameter negotiation failed [L1] LCP: state change Opened --> Stopping [L1] LCP: SendTerminateReq #3 [L1] LCP: LayerDown [L1] rec'd proto CHAP during terminate phase [L1] LCP: rec'd Terminate Request #2 (Stopping) [L1] LCP: SendTerminateAck #4 [L1] LCP: rec'd Terminate Ack #3 (Stopping) [L1] LCP: state change Stopping --> Stopped [L1] LCP: LayerFinish [L1] PPTP call terminated [L1] Link: DOWN event [L1] LCP: Down event [L1] LCP: state change Stopped --> Starting [L1] LCP: LayerStart [L1] Link: reconnection attempt 1 in 2 seconds It seems that the authentication is failing but I don't know why as the login and password are correct (I tested them with pptp/pon on Debian, it worked fine). One thing that puzzles me is the [L1] Name: "localhost" line, as if "localhost" was used as a login or something... Can anyone help please? Regards, Mathieu