problem with pptp, using mpd
Mathieu L.
lejatorn at gmail.com
Thu Oct 22 08:03:15 UTC 2009
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 at 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
More information about the freebsd-net
mailing list