конфиг: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 FreeBSDprocess 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
srv# cat /usr/local/etc/mpd4/mpd.conf
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 "user"
set auth password "1234"
set link disable acfcomp protocomp
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# tail -90 /var/log/mpd.log
Jan 23 13:58:04 srv mpd: process 32999 started, version 4.4.1 (root@freebsd.org 20:09 20-Dec-2008)
Jan 23 13:58:04 srv mpd: web: listening on 127.0.0.1 5006
Jan 23 13:58:04 srv mpd: Label 'reload' not found
Jan 23 13:58:04 srv mpd: can't read configuration for "reload"
Jan 23 13:58:04 srv mpd: process 32999 terminated
Jan 23 14:01:15 srv mpd: Multi-link PPP daemon for FreeBSD
Jan 23 14:01:15 srv mpd:
Jan 23 14:01:15 srv mpd: process 33026 started, version 4.4.1 (root@freebsd.org 20:09 20-Dec-2008)
Jan 23 14:01:15 srv mpd: web: listening on 127.0.0.1 5006
Jan 23 14:01:15 srv mpd: [vpn] using interface ng0
Jan 23 14:01:15 srv mpd: [vpn] link: OPEN event
Jan 23 14:01:15 srv mpd: [vpn] LCP: Open event
Jan 23 14:01:15 srv mpd: [vpn] LCP: state change Initial --> Starting
Jan 23 14:01:15 srv mpd: [vpn] LCP: LayerStart
Jan 23 14:01:15 srv mpd: pptp0: connecting to 172.16.0.1 1723
Jan 23 14:01:15 srv mpd: pptp0: connected to 172.16.0.1 1723
Jan 23 14:01:15 srv mpd: pptp0: attached to connection with 172.16.0.1 1723
Jan 23 14:01:15 srv mpd: pptp0-0: outgoing call connected at 64000 bps
Jan 23 14:01:15 srv mpd: [vpn] PPTP call successful
Jan 23 14:01:15 srv mpd: [vpn] link: UP event
Jan 23 14:01:15 srv mpd: [vpn] link: origination is local
Jan 23 14:01:15 srv mpd: [vpn] LCP: Up event
Jan 23 14:01:15 srv mpd: [vpn] LCP: state change Starting --> Req-Sent
Jan 23 14:01:15 srv mpd: [vpn] LCP: SendConfigReq #1
Jan 23 14:01:15 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:15 srv mpd: MRU 1500
Jan 23 14:01:15 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:17 srv mpd: [vpn] LCP: SendConfigReq #2
Jan 23 14:01:17 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:17 srv mpd: MRU 1500
Jan 23 14:01:17 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:19 srv mpd: [vpn] LCP: SendConfigReq #3
Jan 23 14:01:19 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:19 srv mpd: MRU 1500
Jan 23 14:01:19 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:21 srv mpd: [vpn] LCP: SendConfigReq #4
Jan 23 14:01:21 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:21 srv mpd: MRU 1500
Jan 23 14:01:21 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:23 srv mpd: [vpn] LCP: SendConfigReq #5
Jan 23 14:01:23 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:23 srv mpd: MRU 1500
Jan 23 14:01:23 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:25 srv mpd: [vpn] LCP: SendConfigReq #6
Jan 23 14:01:25 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:25 srv mpd: MRU 1500
Jan 23 14:01:25 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:27 srv mpd: [vpn] LCP: SendConfigReq #7
Jan 23 14:01:27 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:27 srv mpd: MRU 1500
Jan 23 14:01:27 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:29 srv mpd: [vpn] LCP: SendConfigReq #8
Jan 23 14:01:29 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:29 srv mpd: MRU 1500
Jan 23 14:01:29 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:31 srv mpd: [vpn] LCP: SendConfigReq #9
Jan 23 14:01:31 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:31 srv mpd: MRU 1500
Jan 23 14:01:31 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:33 srv mpd: [vpn] LCP: SendConfigReq #10
Jan 23 14:01:33 srv mpd: ACCMAP 0x000a0000
Jan 23 14:01:33 srv mpd: MRU 1500
Jan 23 14:01:33 srv mpd: MAGICNUM cf2ca368
Jan 23 14:01:35 srv mpd: [vpn] LCP: parameter negotiation failed
Jan 23 14:01:35 srv mpd: [vpn] LCP: state change Req-Sent --> Stopped
Jan 23 14:01:35 srv mpd: [vpn] LCP: LayerFinish
Jan 23 14:01:35 srv mpd: pptp0-0: clearing call
Jan 23 14:01:35 srv mpd: pptp0-0: peer call disconnected res=lost carrier err=none
Jan 23 14:01:35 srv mpd: pptp0-0: killing channel
Jan 23 14:01:35 srv mpd: [vpn] PPTP call terminated
Jan 23 14:01:35 srv mpd: [vpn] link: DOWN event
Jan 23 14:01:35 srv mpd: [vpn] LCP: Close event
Jan 23 14:01:35 srv mpd: [vpn] LCP: state change Stopped --> Closed
Jan 23 14:01:35 srv mpd: [vpn] LCP: Down event
Jan 23 14:01:35 srv mpd: [vpn] LCP: state change Closed --> Initial
Jan 23 14:01:35 srv mpd: pptp0: closing connection with 172.16.0.1 1723
Jan 23 14:01:35 srv mpd: pptp0: got StopCtrlConnRequest: reason=zero?
Jan 23 14:01:35 srv mpd: pptp0: killing connection with 172.16.0.1 1723
Jan 23 14:07:59 srv mpd: caught fatal signal int
Jan 23 14:07:59 srv mpd: [vpn] IFACE: Close event
Jan 23 14:07:59 srv mpd: [vpn] IPCP: Close event
Jan 23 14:08:01 srv mpd: process 33026 terminated
srv#