Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2009 22:28:03 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        "Mathieu L." <lejatorn@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: problem with pptp, using mpd
Message-ID:  <4AE0B243.9000700@FreeBSD.org>
In-Reply-To: <1256210582.00175808.1256199002@10.7.7.3>
References:  <1256210582.00175808.1256199002@10.7.7.3>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AE0B243.9000700>