problem with pptp, using mpd

Alexander Motin mav at FreeBSD.org
Thu Oct 22 19:28:06 UTC 2009


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


More information about the freebsd-net mailing list