Памагите пзаласта! mpd выдаёт ошибку авторизации хотя в конфиге это присутствует:
****
[vpn] LCP: rec'd Ident #0 link 0 (Opened)
MESG: user-ppp 3.1 (built Oct 15 2004)
[vpn] CHAP: rec'd CHALLENGE #1
Name: ""
Using authname "user"
[vpn] CHAP: sending RESPONSE
[vpn] CHAP: rec'd RESPONSE #1
Name: ""
Peer name: ""
mpd: empty auth name
Can't get credentials for ""
[vpn] CHAP: sending FAILURE
[vpn] LCP: authorization failed
[vpn] device: CLOSE event in state UP
pptp0-0: clearing call
[vpn] device is now in state CLOSING
[vpn] device: DOWN event in state CLOSING
[vpn] device is now in state DOWN
[vpn] link: DOWN event
[vpn] LCP: Down event
[vpn] LCP: state change Opened --> Starting
[vpn] LCP: phase shift AUTHENTICATE --> DEAD
******
mpd.conf:
vpn:
new -i ng1 vpn vpn
set iface disable on-demand
set iface addrs 192.168.1.1 192.168.2.1
set iface idle 0
# disconnect the client after 8 hours
set iface session 28800
set iface route default
set bundle disable multilink
set bundle authname "user"
set bundle password "пароль"
set link yes acfcomp protocomp
set link no pap
set link yes chap
set link mtu 1460
# If remote machine is NT you need this..
# set link enable no-orig-auth
# set link keep-alive 10 75
# set ipcp yes vjcomp
# set ipcp ranges 192.168.1.1/32 192.168.2.1/32
# set ipcp ranges 192.168.0.5/32 192.168.0.1/32
#
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
#
set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set bundle enable crypt-reqd
set ccp yes mpp-stateless
open
mpd.links:
vpn:
set link type pptp
set pptp self 10.4.1.254
set pptp peer 10.4.100.1
set pptp enable originate incoming outcall