PPTP и PPPD
Добавлено: 04 окт 2004, 00:09
Кароче я "счасливый" обладатель выхода в интернет через выделенную линию провайдера "соло".
Вот проблема:
Oct 2 22:46:00 linux pptp[906]: anon log[main:pptp.c:243]: The synchronous pptp option is NOT activated
Oct 2 22:46:00 linux pptp[909]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 2 22:46:00 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:721]: Received Start Control Connection Reply
Oct 2 22:46:00 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:755]: Client connection established.
Oct 2 22:46:01 linux pptp[909]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 2 22:46:01 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:841]: Received Outgoing Call Reply.
Oct 2 22:46:01 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:880]: Outgoing call established (call ID 0, peer's call ID 12416).
Oct 2 22:46:01 linux pppd[910]: pppd 2.4.2 started by root, uid 0
Oct 2 22:46:01 linux pppd[910]: using channel 31
Oct 2 22:46:01 linux pppd[910]: Using interface ppp0
Oct 2 22:46:01 linux pppd[910]: Connect: ppp0 <--> /dev/pts/2
Oct 2 22:46:01 linux pppd[910]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x92c27858> <pcomp> <accomp>]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP ConfReq id=0x1 <accomp> <pcomp> <asyncmap 0x0> <mru 1500>
<magic 0xfd4c1150> <quality lqr 00 00 05 dc> <auth chap MD5>]
Oct 2 22:46:03 linux pppd[910]: sent [LCP ConfRej id=0x1 <quality lqr 00 00 05 dc>]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x92c27858> <pcomp> <accomp>]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP code=0xc id=0x0 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: sent [LCP CodeRej id=0x2 0c 00 00 17 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP ConfReq id=0x2 <accomp> <pcomp> <asyncmap 0x0> <mru 1500>
<magic 0xfd4c1150> <auth chap MD5>]
Oct 2 22:46:03 linux pppd[910]: sent [LCP ConfAck id=0x2 <accomp> <pcomp> <asyncmap 0x0> <mru 1500>
<magic 0xfd4c1150> <auth chap MD5>]
Oct 2 22:46:03 linux pppd[910]: sent [LCP EchoReq id=0x0 magic=0x92c27858]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP EchoReq id=0x0 magic=0xfd4c1150 00 00 00 00 05 dc 05 06]
Oct 2 22:46:03 linux pppd[910]: sent [LCP EchoRep id=0x0 magic=0x92c27858 00 00 00 00 05 dc 05 06]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP code=0xc id=0x1 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: sent [LCP CodeRej id=0x3 0c 01 00 17 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: rcvd [CHAP Challenge id=0x1 <34383531383331343239343833303531>, name = ""]
Oct 2 22:46:03 linux pppd[910]: sent [CHAP Response id=0x1 <21f5a2256ba1949e7a061ef35a98498b>, name = "XXXXX"]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP EchoRep id=0x0 magic=0xfd4c1150]
Oct 2 22:46:04 linux pppd[910]: rcvd [CHAP Failure id=0x1
"Invalid!!\000"]
Oct 2 22:46:04 linux pppd[910]: CHAP authentication failed: Invalid!!
Oct 2 22:46:04 linux pppd[910]: sent [LCP TermReq id=0x4 "Failed to authenticate ourselves to peer"]
Oct 2 22:46:04 linux pppd[910]: rcvd [LCP TermReq id=0x3]
Oct 2 22:46:04 linux pppd[910]: sent [LCP TermAck id=0x3]
Oct 2 22:46:04 linux pppd[910]: rcvd [LCP TermAck id=0x4]
Oct 2 22:46:04 linux pppd[910]: Connection terminated.
Oct 2 22:46:04 linux pppd[910]: Exit.
Oct 2 22:46:04 linux pptp[909]: anon log[callmgr_main:pptp_callmgr.c:228]: Closing connection
Oct 2 22:46:04 linux pptp[909]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 12 'Call-Clear-Request'
Oct 2 22:46:04 linux pptp[909]: anon log[pptp_read_some:pptp_ctrl.c:525]: read returned zero, peer has closed
Oct 2 22:46:04 linux pptp[909]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Oct 2 22:46:04 linux pptp[909]: anon log[pptp_conn_close:pptp_ctrl.c:425]: Closing PPTP connection
Oct 2 22:46:04 linux pptp[909]: anon log[pptp_write_some:pptp_ctrl.c:497]: write error: Bad file descriptor
Вот мой /etc/ppp/options:
name XXXXX
remotename vpn
defaultroute
noauth
asyncmap 0
crtscts
lock
local
noproxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
debug
Файл /etc/ppp/chap-secrets приблизительно такой:
XXXXX vpn my-secret
Если кто тоже имеет дело с Соло напишите плиз свой вариант конфигов. Желательно с работающим логом.
Вот проблема:
Oct 2 22:46:00 linux pptp[906]: anon log[main:pptp.c:243]: The synchronous pptp option is NOT activated
Oct 2 22:46:00 linux pptp[909]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 2 22:46:00 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:721]: Received Start Control Connection Reply
Oct 2 22:46:00 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:755]: Client connection established.
Oct 2 22:46:01 linux pptp[909]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 2 22:46:01 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:841]: Received Outgoing Call Reply.
Oct 2 22:46:01 linux pptp[909]: anon log[ctrlp_disp:pptp_ctrl.c:880]: Outgoing call established (call ID 0, peer's call ID 12416).
Oct 2 22:46:01 linux pppd[910]: pppd 2.4.2 started by root, uid 0
Oct 2 22:46:01 linux pppd[910]: using channel 31
Oct 2 22:46:01 linux pppd[910]: Using interface ppp0
Oct 2 22:46:01 linux pppd[910]: Connect: ppp0 <--> /dev/pts/2
Oct 2 22:46:01 linux pppd[910]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x92c27858> <pcomp> <accomp>]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP ConfReq id=0x1 <accomp> <pcomp> <asyncmap 0x0> <mru 1500>
<magic 0xfd4c1150> <quality lqr 00 00 05 dc> <auth chap MD5>]
Oct 2 22:46:03 linux pppd[910]: sent [LCP ConfRej id=0x1 <quality lqr 00 00 05 dc>]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x92c27858> <pcomp> <accomp>]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP code=0xc id=0x0 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: sent [LCP CodeRej id=0x2 0c 00 00 17 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP ConfReq id=0x2 <accomp> <pcomp> <asyncmap 0x0> <mru 1500>
<magic 0xfd4c1150> <auth chap MD5>]
Oct 2 22:46:03 linux pppd[910]: sent [LCP ConfAck id=0x2 <accomp> <pcomp> <asyncmap 0x0> <mru 1500>
<magic 0xfd4c1150> <auth chap MD5>]
Oct 2 22:46:03 linux pppd[910]: sent [LCP EchoReq id=0x0 magic=0x92c27858]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP EchoReq id=0x0 magic=0xfd4c1150 00 00 00 00 05 dc 05 06]
Oct 2 22:46:03 linux pppd[910]: sent [LCP EchoRep id=0x0 magic=0x92c27858 00 00 00 00 05 dc 05 06]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP code=0xc id=0x1 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: sent [LCP CodeRej id=0x3 0c 01 00 17 fd 4c 11 50 53 4f 4c 4f 20 56 50 4e 20 53 65 72 76 65 72]
Oct 2 22:46:03 linux pppd[910]: rcvd [CHAP Challenge id=0x1 <34383531383331343239343833303531>, name = ""]
Oct 2 22:46:03 linux pppd[910]: sent [CHAP Response id=0x1 <21f5a2256ba1949e7a061ef35a98498b>, name = "XXXXX"]
Oct 2 22:46:03 linux pppd[910]: rcvd [LCP EchoRep id=0x0 magic=0xfd4c1150]
Oct 2 22:46:04 linux pppd[910]: rcvd [CHAP Failure id=0x1
"Invalid!!\000"]
Oct 2 22:46:04 linux pppd[910]: CHAP authentication failed: Invalid!!
Oct 2 22:46:04 linux pppd[910]: sent [LCP TermReq id=0x4 "Failed to authenticate ourselves to peer"]
Oct 2 22:46:04 linux pppd[910]: rcvd [LCP TermReq id=0x3]
Oct 2 22:46:04 linux pppd[910]: sent [LCP TermAck id=0x3]
Oct 2 22:46:04 linux pppd[910]: rcvd [LCP TermAck id=0x4]
Oct 2 22:46:04 linux pppd[910]: Connection terminated.
Oct 2 22:46:04 linux pppd[910]: Exit.
Oct 2 22:46:04 linux pptp[909]: anon log[callmgr_main:pptp_callmgr.c:228]: Closing connection
Oct 2 22:46:04 linux pptp[909]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 12 'Call-Clear-Request'
Oct 2 22:46:04 linux pptp[909]: anon log[pptp_read_some:pptp_ctrl.c:525]: read returned zero, peer has closed
Oct 2 22:46:04 linux pptp[909]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Oct 2 22:46:04 linux pptp[909]: anon log[pptp_conn_close:pptp_ctrl.c:425]: Closing PPTP connection
Oct 2 22:46:04 linux pptp[909]: anon log[pptp_write_some:pptp_ctrl.c:497]: write error: Bad file descriptor
Вот мой /etc/ppp/options:
name XXXXX
remotename vpn
defaultroute
noauth
asyncmap 0
crtscts
lock
local
noproxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
debug
Файл /etc/ppp/chap-secrets приблизительно такой:
XXXXX vpn my-secret
Если кто тоже имеет дело с Соло напишите плиз свой вариант конфигов. Желательно с работающим логом.