Solved mpd5 PPP client authorisation error

Hi to community.

Now, i use PPP PPTP client, it is working, but has a problems such as packets losses and spontaneous disconnections.

I want to try a Netgraf MPD5 pptp client as a solution. But cannot understand a reason of problem, got a peer authorisation error such as "Type UNKNOWN not supported"

The environment:

FreeBSD 10.3-RELEASE-p9

Code:
 kldstat -v | grep ng_
                234 ng_socket
                225 ng_iface
                230 ng_ppp
                217 ng_netflow
                224 ng_ether
                229 ng_mppc
                223 ng_device
                222 ng_deflate
                218 ng_async
                221 ng_car
                228 ng_l2tp
                220 ng_bpf
                237 ng_vjc
                236 ng_tee
                235 ng_tcpmss
                227 ng_ksocket
                233 ng_pred1
                226 ng_ipfw
                232 ng_pptpgre
                231 ng_pppoe

mpd5-5.8

mpd.conf
Code:
startup:

default:
        load pptp_client
pptp_client:
        create link static L1 pptp
        set link action bundle B1
        #set link yes chap
        set link yes eap
        set auth authname usernsme
        set auth password passwd
        set link max-redial 0
        set link mtu 1400
        set link mru 1400
        set link keep-alive 20 75
        set pptp disable windowing
        set pptp peer peer.net
        open

Session log

Code:
Multi-link PPP daemon for FreeBSD

process 3895 started, version 5.8 (root@router 21:28 12-Jan-2017)
[L1] [L1] Link: OPEN event
[L1] LCP: Open event
[L1] LCP: state change Initial --> Starting
[L1] LCP: LayerStart
[L1] PPTP call successful
[L1] Link: UP event
[L1] LCP: Up event
[L1] LCP: state change Starting --> Req-Sent
[L1] LCP: SendConfigReq #1
[L1]   ACFCOMP
[L1]   PROTOCOMP
[L1]   ACCMAP 0x000a0000
[L1]   MRU 1400
[L1]   MAGICNUM 0xbbf46830
[L1]   AUTHPROTO EAP
[L1] LCP: rec'd Configure Request #0 (Req-Sent)
[L1]   MRU 1400
[L1]   AUTHPROTO EAP
[L1]   MAGICNUM 0x4fd60b92
[L1]   PROTOCOMP
[L1]   ACFCOMP
[L1]   CALLBACK 6
[L1]   MP MRRU 1614
[L1]   ENDPOINTDISC [LOCAL] 74 3a a4 15 48 a0 4c 3c af ce 63 33 65 9f ef 3c 00 00 0
[L1] LCP: SendConfigRej #0
[L1]   CALLBACK 6
[L1]   MP MRRU 1614
[L1] LCP: rec'd Configure Ack #1 (Req-Sent)
[L1]   ACFCOMP
[L1]   PROTOCOMP
[L1]   ACCMAP 0x000a0000
[L1]   MRU 1400
[L1]   MAGICNUM 0xbbf46830
[L1]   AUTHPROTO EAP
[L1] LCP: state change Req-Sent --> Ack-Rcvd
[L1] LCP: rec'd Configure Request #1 (Ack-Rcvd)
[L1]   MRU 1400
[L1]   AUTHPROTO EAP
[L1]   MAGICNUM 0x4fd60b92
[L1]   PROTOCOMP
[L1]   ACFCOMP
[L1]   ENDPOINTDISC [LOCAL] 74 3a a4 15 48 a0 4c 3c af ce 63 33 65 9f ef 3c 00 00 0
[L1] LCP: SendConfigAck #1
[L1]   MRU 1400
[L1]   AUTHPROTO EAP
[L1]   MAGICNUM 0x4fd60b92
[L1]   PROTOCOMP
[L1]   ACFCOMP
[L1]   ENDPOINTDISC [LOCAL] 74 3a a4 15 48 a0 4c 3c af ce 63 33 65 9f ef 3c 00 00 0
[L1] LCP: state change Ack-Rcvd --> Opened
[L1] LCP: auth: peer wants EAP, I want EAP
[L1] EAP: sending REQUEST #1 len: 5, type: Identity
[L1] LCP: LayerUp
[L1] EAP: rec'd REQUEST #0 len: 5, type: Identity
[L1] EAP: sending RESPONSE #0 len: 21, type: Identity
[L1] EAP: rec'd REQUEST #1 len: 33, type: UNKNOWN
[L1] EAP: Type UNKNOWN not supported
[L1] EAP: sending RESPONSE #1 len: 6, type: Nak
[L1] EAP: rec'd FAILURE #1 len: 4
[L1] LCP: authorization failed
[L1] LCP: parameter negotiation failed
[L1] LCP: state change Opened --> Stopping
[L1] LCP: SendTerminateReq #2
[L1] LCP: LayerDown

As you can see - has an authorisation problem " Type UNKNOWN not supported "
The system uses EAP authorisation type in both sides, and by CHAP type has a simular result.
What negotiation parameter i have to set up?
 
Last edited by a moderator:
It solved, but only a reason found. The problem on the VPN server side, it works on Microsoft...... I think, MPD5 does not working with Microsoft protocols. The solution - to find some BSD VPN service. Am i right?
 
Back
Top