Ситуация следующая: мой провайдер использует протокол pptp. для авторизации достаточно chap. шифрования нет. в rc.conf в автостарте стоит демон, создающий vpn-тунель. при ручном вызове демона rc.d start <my_isp> все шикарно работает. Во время автозапуска соединиться не может. В логах при автозапуске зачем-то используется ms-chap (естественно, failed. зачем?). при ручном вызове используется только chap (succeeded конечно). Вот логи:
1) при ручном вызове:
Jan 17 16:42:09 localhost pppd[1282]: pppd 2.4.5 started by ilot, uid 0
Jan 17 16:42:09 localhost pppd[1282]: Using interface ppp0
Jan 17 16:42:09 localhost pppd[1282]: Connect: ppp0 <--> /dev/pts/2
Jan 17 16:42:09 localhost pptp[1283]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Jan 17 16:42:09 localhost pptp[1287]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jan 17 16:42:09 localhost pptp[1287]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Jan 17 16:42:09 localhost pptp[1287]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Jan 17 16:42:10 localhost pptp[1287]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Jan 17 16:42:10 localhost pptp[1287]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Jan 17 16:42:10 localhost pptp[1287]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 25190).
Jan 17 16:42:10 localhost pppd[1282]: CHAP authentication succeeded
Jan 17 16:42:10 localhost pppd[1282]: Cannot determine ethernet address for proxy ARP
Jan 17 16:42:10 localhost pppd[1282]: local IP address *.*.*.*
Jan 17 16:42:10 localhost pppd[1282]: remote IP address *.*.*.*
2) в автозапуске:
Jan 17 16:39:49 localhost pppd[1107]: Using interface ppp0
Jan 17 16:39:49 localhost pppd[1107]: Connect: ppp0 <--> /dev/pts/3
Jan 17 16:39:49 localhost pptp[1217]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Jan 17 16:39:49 localhost pptp[1221]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jan 17 16:39:49 localhost pptp[1221]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Jan 17 16:39:49 localhost pptp[1221]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Jan 17 16:39:50 localhost pptp[1221]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Jan 17 16:39:50 localhost pptp[1221]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Jan 17 16:39:50 localhost pptp[1221]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 19718).
Jan 17 16:39:50 localhost pppd[1107]: MS-CHAP authentication failed: ^AE=691 R=1
Jan 17 16:39:50 localhost pppd[1107]: CHAP authentication failed
Jan 17 16:39:50 localhost pppd[1107]: Connection terminated.
Jan 17 16:39:50 localhost pptp[1221]: anon log[ctrlp_disp:pptp_ctrl.c:929]: Call disconnect notification received (call id 19718)
Jan 17 16:39:50 localhost pptp[1217]: anon warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Jan 17 16:39:50 localhost pptp[1217]: anon warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Jan 17 16:39:50 localhost pptp[1221]: anon log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Jan 17 16:39:50 localhost pptp[1221]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Jan 17 16:39:50 localhost pptp[1221]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Куда копать? Почему автозапуск работает иначе? Самое интересное, работает через раз. Иногда успешно логинится.