I try to establish on the computer connection with a server of the provider
pptp. On it it is included mppe and MSChapV2. At myself by the machine I
have registered in/etc/ppp/ppp.conf:
default:
set log Phase Chat LCP IPCP CCP tun command
pptp1:
set device "!/usr/local/sbin/pptp 10.0.0.1 --nolaunchpppd"
set log Phase LCP IPCP CCP tun command
disable acfcomp protocomp
deny acfcomp
enable lqr
set lqrperiod 5
set cd 5
set redial 30
accept mppe
accept dns
set timeout 0
set authname selhozdep
set authkey 9Ds76PLk89
set dial
set login
add! default HISADDR
enable mssfixup
disable ipv6cp
accept MSChapV2
set mppe * stateful
when I connected to provider server in logs I have:
Apr 4 19:50:09 selhoz pptp[11352]: anon log[ctrlp_disp:pptp_ctrl.c:739]:
Received Start Control Connection Reply
Apr 4 19:50:09 selhoz pptp[11352]: anon log[ctrlp_disp:pptp_ctrl.c:773]:
Client connection established.
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: SendConfigReq(165)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACCMAP[6] 0x00000000
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MRU[4] 1500
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MAGICNUM[6] 0x2ff4da76
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: QUALPROTO[8] proto c025,
interval 5000ms
Apr 4 19:50:10 selhoz pptp[11352]: anon log[ctrlp_rep:pptp_ctrl.c:251]:
Sent control packet type is 7 'Outgoing-Call-Request'
Apr 4 19:50:10 selhoz pptp[11352]: anon log[ctrlp_disp:pptp_ctrl.c:858]:
Received Outgoing Call Reply.
Apr 4 19:50:10 selhoz pptp[11352]: anon log[ctrlp_disp:pptp_ctrl.c:897]:
Outgoing call established (call ID 0, peer's call ID 63360).
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: RecvConfigReq(1)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACFCOMP[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: PROTOCOMP[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACCMAP[6] 0x00000000
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MRU[4] 1500
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MAGICNUM[6] 0x629d2f8a
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP
0x81)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: SendConfigRej(1)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACFCOMP[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: RecvConfigAck(165)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACCMAP[6] 0x00000000
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MRU[4] 1500
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MAGICNUM[6] 0x2ff4da76
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: QUALPROTO[8] proto c025,
interval 5000ms
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: State change Req-Sent
--> Ack-Rcvd
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: RecvConfigAck(165),
dropped (expected 166)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: RecvConfigReq(2)
state = Ack-Rcvd
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: PROTOCOMP[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACCMAP[6] 0x00000000
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MRU[4] 1500
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MAGICNUM[6] 0x629d2f8a
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP
0x81)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: SendConfigAck(2)
state = Ack-Rcvd
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: PROTOCOMP[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: ACCMAP[6] 0x00000000
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MRU[4] 1500
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: MAGICNUM[6] 0x629d2f8a
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP
0x81)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: State change Ack-Rcvd
--> Opened
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: LayerUp
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: bundle: Authenticate
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: his = CHAP 0x81,
mine = none
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: Chap Input: CHALLENGE (16
bytes)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: Chap Output: RESPONSE
(selhozdep)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: Chap Input: SUCCESS
(S=1354D02B32ED6A32D24DFCCE19CE0305BB5C8ABD)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: FSM: Using "deflink" as a
transport
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: State change Initial
--> Closed
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: LayerStart.
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: SendConfigReq(83)
state = Closed
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: DEFLATE[4] win 15
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: PRED1[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: MPPE[6] value 0x000000e0
(128/56/40 bits, stateful)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: State change Closed
--> Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: lcp -> open
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: bundle: Network
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: FSM: Using "deflink" as a
transport
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: State change Initial
--> Closed
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: LayerStart.
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: SendConfigReq(45)
state = Closed
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: IPADDR[6] 192.168.0.254
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: COMPPROTO[6] 16 VJ slots
with slot compression
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: State change Closed
--> Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: RecvConfigReq(1)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: DEFLATE[4] win 15
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: PRED1[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: MPPE[6] value 0x010000e0
(128/56/40 bits, stateless)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: SendConfigRej(1)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: PRED1[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: MPPE[6] value 0x010000e0
(128/56/40 bits, stateless)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: RecvConfigReq(1)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: IPADDR[6] 10.0.0.1
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: COMPPROTO[6] 16 VJ slots
with slot compression
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: SendConfigAck(1)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: IPADDR[6] 10.0.0.1
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: COMPPROTO[6] 16 VJ slots
with slot compression
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: State change
Req-Sent --> Ack-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: RecvConfigRej(83)
state = Req-Sent
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: PRED1[2]
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: MPPE[6] value 0x000000e0
(128/56/40 bits, stateful)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Warning: deflink: Peer rejected
(required) MPPE negotiation
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: LayerDown
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: SendTerminateReq(166)
state = Opened
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: State change Opened
--> Closing
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: State change Req-Sent
--> Starting
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: LayerFinish.
Apr 4 19:50:10 selhoz ppp[23467]: tun0: CCP: deflink: State change Starting
--> Initial
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: open -> lcp
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Warning: ff01:5::/32: Change route
failed: errno: Network is unreachable
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Warning: ff02:5::/32: Change route
failed: errno: Network is unreachable
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: State change
Ack-Sent --> Starting
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: LayerFinish.
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: Connect time: 0 secs: 0
octets in, 0 octets out
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: 0 packets in, 0 packets out
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: total 0 bytes/sec, peak 0
bytes/sec on Fri Apr 4 19:50:10 2008
Apr 4 19:50:10 selhoz ppp[23467]: tun0: IPCP: deflink: State change
Starting --> Initial
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: bundle: Terminate
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: RecvTerminateReq(3)
state = Closing
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: SendTerminateAck(3)
state = Closing
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: RecvTerminateAck(166)
state = Closing
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: LayerFinish
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: State change Closing
--> Closed
Apr 4 19:50:10 selhoz ppp[23467]: tun0: LCP: deflink: State change Closed
--> Initial
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: Disconnected!
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: lcp -> logout
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: logout -> hangup
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: Disconnected!
Apr 4 19:50:10 selhoz pptp[10024]: anon warn[decaps_hdlc:pptp_gre.c:197]:
short read (0): Invalid argument
Apr 4 19:50:10 selhoz pptp[11352]: anon
log[callmgr_main:pptp_callmgr.c:231]: Closing connection (unhandled)
Apr 4 19:50:10 selhoz pptp[11352]: anon log[ctrlp_rep:pptp_ctrl.c:251]:
Sent control packet type is 12 'Call-Clear-Request'
Apr 4 19:50:10 selhoz pptp[11352]: anon
log[call_callback:pptp_callmgr.c:78]: Closing connection (call state)
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: Connect time: 4
secs: 595 octets in, 441 octets out
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: 966 packets in, 941
packets out
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: total 259 bytes/sec, peak
22 bytes/sec on Fri Apr 4 19:50:10 2008
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: HUPing 10024
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: hangup -> opening
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: bundle: Establish
Apr 4 19:50:10 selhoz ppp[23467]: tun0: Phase: deflink: Enter pause (3) for
redialing.
Apr 4 19:50:13 selhoz pptp[24152]: anon log[main:pptp.c:276]: The
synchronous pptp option is NOT activated
Apr 4 19:50:13 selhoz ppp[23467]: tun0: Warning: Carrier settings ignored
Apr 4 19:50:13 selhoz ppp[23467]: tun0: Phase: deflink: Connected!
Apr 4 19:50:13 selhoz ppp[23467]: tun0: Phase: deflink: opening -> dial
Apr 4 19:50:13 selhoz ppp[23467]: tun0: Phase: deflink: dial -> carrier
Apr 4 19:50:13 selhoz ppp[23467]: tun0: Phase: deflink: carrier -> login
Apr 4 19:50:13 selhoz ppp[23467]: tun0: Phase: deflink: login -> lcp
Apr 4 19:50:13 selhoz ppp[23467]: tun0: LCP: FSM: Using "deflink" as a
transport
Apr 4 19:50:13 selhoz ppp[23467]: tun0: LCP: deflink: State change Initial
--> Closed
Apr 4 19:50:13 selhoz ppp[23467]: tun0: LCP: deflink: State change Closed
--> Stopped
Apr 4 19:50:13 selhoz pptp[24148]: anon log[ctrlp_rep:pptp_ctrl.c:251]:
Sent control packet type is 1 'Start-Control-Connection-Request'
but PPTP not connected. What do I do not so?
That's it a provider pptp Vpn server config (/etc/ppp/ppp.conf):
pptp:
enable MSChapV2
set timeout 0
set ifaddr 10.0.0.1 10.100.0.30-10.100.0.254 255.255.255.255
accept dns
set dns 91.185.2.10
disable ipv6cp
set mppe * stateless
enable proxy
--
---------------------------
Best Regards
Kharlamov Sergey