конфиг:startup:
set web ip 127.0.0.1
set web port 5006
set web user vpn vpn
set web open
default:
load vpn
vpn:
new -i ng0 vpn vpn
set iface disable on-demand
set iface idle 0
set bundle disable multilink
set bundle disable compression
set iface up-script /usr/local/etc/mpd4/link_up.sh
set iface down-script /usr/local/etc/mpd4/link_down.sh
set auth authname "bla-bla"
set auth password "12345"
set link keep-alive 60 180
set link disable chap
set link accept chap
set link no pap
set ccp yes mpp-e40
set ccp no mpp-e128
set bundle disable crypt-reqd
set ccp no mpp-stateless
set ipcp no vjcomp
set link mtu 1460
open
лог:
srv# mpd4
Multi-link PPP daemon for FreeBSD
process 32772 started, version 4.4.1 (root@freebsd.org 20:09 20-Dec-2008)
web: listening on 127.0.0.1 5006
[vpn] using interface ng0
[vpn] link: OPEN event
[vpn] LCP: Open event
[vpn] LCP: state change Initial --> Starting
[vpn] LCP: LayerStart
pptp0: connecting to 172.16.0.1 1723
pptp0: connected to 172.16.0.1 1723
pptp0: attached to connection with 172.16.0.1 1723
pptp0-0: outgoing call connected at 64000 bps
[vpn] PPTP call successful
[vpn] link: UP event
[vpn] link: origination is local
[vpn] LCP: Up event
[vpn] LCP: state change Starting --> Req-Sent
[vpn] LCP: SendConfigReq #1
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #2
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #3
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #4
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #5
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #6
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #7
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #8
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #9
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: SendConfigReq #10
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 6cc588e4
[vpn] LCP: parameter negotiation failed
[vpn] LCP: state change Req-Sent --> Stopped
[vpn] LCP: LayerFinish
pptp0-0: clearing call
pptp0-0: peer call disconnected res=lost carrier err=none
pptp0-0: killing channel
[vpn] PPTP call terminated
[vpn] link: DOWN event
[vpn] LCP: Close event
[vpn] LCP: state change Stopped --> Closed
[vpn] LCP: Down event
[vpn] LCP: state change Closed --> Initial
pptp0: closing connection with 172.16.0.1 1723
pptp0: got StopCtrlConnRequest: reason=zero?
pptp0: killing connection with 172.16.0.1 1723
caught fatal signal int
[vpn] IFACE: Close event
[vpn] IPCP: Close event