Код: Выделить всё
[vpn] LCP: state change Ack-Rcvd --> Opened
[vpn] LCP: auth: peer wants EAP, I want CHAP
[vpn] CHAP: sending CHALLENGE len:21
[vpn] LCP: LayerUp
[vpn] EAP: rec'd REQUEST Type Identity #161 len:5
[vpn] EAP: sending RESPONSE Type Identity len:4
[vpn] CHAP: rec'd RESPONSE #1
Name: "pptpd"
[vpn] AUTH: Thread already running, dropping this packet
[vpn] AUTH: Auth-Thread started
[vpn] AUTH: Trying secret file: mpd.secret
Peer name: "pptpd"
User "pptpd" not found in secret file
[vpn] AUTH: Auth-Thread finished normally
[vpn] CHAP: ChapInputFinish: status failed
[vpn] CHAP: sending FAILURE len:29
[vpn] LCP: authorization failed
пишет вот такое ... вот никак не пойму, почему Name: "pptpd" возвращается ...
Код: Выделить всё
[root@phasma /usr/local/etc/mpd4]# cat mpd.conf
startup:
# enable TCP-Wrapper (hosts_access(5)) to block unfriendly clients
set global enable tcp-wrapper
# configure the console
set console port 5005
set console ip 127.0.0.1
set console user admin none
set console open
default:
load vpn
vpn:
new -i ng0 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 auth authname "test"
set auth password "test"
set link yes acfcomp protocomp
set link no pap
set link yes chap
set link mtu 1396
# 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 10.100.10.10/32 10.113.66.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
Код: Выделить всё
[root@phasma /usr/local/etc/mpd4]# cat mpd.links
vpn:
set link type pptp
set pptp self 10.113.66.1
set pptp peer 10.100.10.10
set pptp enable originate incoming outcall
Код: Выделить всё
[root@phasma /usr/local/etc/mpd4]# cat mpd.secret
test "test" *[root@phasma /usr/local/etc/mpd4]#