From owner-freebsd-net@FreeBSD.ORG Thu Oct 22 19:28:06 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 5C1FD106566C for ; Thu, 22 Oct 2009 19:28:06 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id E2DB98FC18 for ; Thu, 22 Oct 2009 19:28:05 +0000 (UTC) Received: by fxm6 with SMTP id 6so9092600fxm.43 for ; Thu, 22 Oct 2009 12:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JYYjcObd9QFbh6+Bd5SL2JXQ9OLteW8gh3DjIrrbqBI=; b=lJCd3uI1JqkR9KUzGi4j/tyX9qAWsXaMk8idWnnObl0VceXhywKekfS1pQ43w6hYqk 39IqGX1oNzbsIKEj15Mt9uce9cyuQ1Tla6lYNzPqgJYPFHhxoefZcCbPkOA/G2xNc524 VvwRGq8spa0S5hAi4hXKNsOG6kGMn7G82sL4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=aZC7Gpc0Dhjpm0gRUGkG+JZcmbksFyJnEkfX4Y8S0vFcT0j4Q2nDkMp8TqDYyUEh/9 XHrhBN5Qovja8IIKyA9jOuiGxPaJGOc02R12xfHLHWuFam8ys3nxkUgFco7qVM91cSPm apTwxnSXjBoHLaWzLm27F96O+bUvG38DtfM4c= Received: by 10.103.81.35 with SMTP id i35mr742082mul.43.1256239684923; Thu, 22 Oct 2009 12:28:04 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id s10sm523895mue.52.2009.10.22.12.28.03 (version=SSLv3 cipher=RC4-MD5); Thu, 22 Oct 2009 12:28:04 -0700 (PDT) Sender: Alexander Motin Message-ID: <4AE0B243.9000700@FreeBSD.org> Date: Thu, 22 Oct 2009 22:28:03 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: "Mathieu L." References: <1256210582.00175808.1256199002@10.7.7.3> In-Reply-To: <1256210582.00175808.1256199002@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: 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 19:28:06 -0000 Mathieu L. wrote: > 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 > [L1] LCP: auth: peer wants CHAP, I want CHAP You are trying to authorize server. :) > 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? As I have replied on forum, replace set link yes chap with set link accept chap -- Alexander Motin