Куда копать? поиском пользовался, ихним не владею! Запуск vpn скриптом, chap прописано, логин и пароль: #!/bin/bash OLD_DEFAULT= route |grep default|awk '{print $2}' NETASSIST_IP= host <тут адрес vpn сервера>|awk '{print $4}'
route add -host $NETASSIST_IP gw $OLD_DEFAULT route del default pppd name <тут логин> persist local nocrtscts nodetach defaultroute pty "pptp $NETASSIST_IP --nolaunchpppd" route add default gw $OLD_DEFAULT route del -host $NETASSIST_IP gw $OLD_DEFAUT
В консоль выдаёт: gw: Unknown host //это ладно, я ему простил, просто не первый раз запускаю Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 CHAP authentication succeeded: M-^?M-^?M-^?M-^?M-,^HM-wM-~H M-wM-~MN^G^HM-117 Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f local IP address 172.16.0.14 remote IP address 172.16.0.1 primary DNS address 81.13.18.194 secondary DNS address 81.13.18.194 Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f CCP: timeout sending Config-Requests
Тут застывает, причем издевается, проходит 1 пинг!!!
В лог падает:
an 20 17:17:41 vtks kernel: CSLIP: code copyright 1989 Regents of the University of California Jan 20 17:17:41 vtks kernel: PPP generic driver version 2.4.2 Jan 20 17:17:41 vtks pppd[3556]: pppd 2.4.2 started by haw, uid 0 Jan 20 17:17:41 vtks pppd[3556]: Using interface ppp0 Jan 20 17:17:41 vtks pppd[3556]: Connect: ppp0 <--> /dev/pts/2 Jan 20 17:17:41 vtks pptp[3569]: anon log[main:pptp.c:243]: The synchronous pptp option is NOT activated Jan 20 17:17:41 vtks pptp[3583]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 1 'Start-Control-Connection-Request' Jan 20 17:17:41 vtks pptp[3583]: anon log[ctrlp_disp:pptp_ctrl.c:721]: Received Start Control Connection Reply Jan 20 17:17:41 vtks pptp[3583]: anon log[ctrlp_disp:pptp_ctrl.c:755]: Client connection established. Jan 20 17:17:42 vtks pptp[3583]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 7 'Outgoing-Call-Request' Jan 20 17:17:42 vtks pptp[3583]: anon log[ctrlp_disp:pptp_ctrl.c:841]: Received Outgoing Call Reply. Jan 20 17:17:42 vtks pptp[3583]: anon log[ctrlp_disp:pptp_ctrl.c:880]: Outgoing call established (call ID 0, peer's call ID 36480). Jan 20 17:17:51 vtks pppd[3556]: CHAP authentication succeeded: M-^?M-^?M-^?M-^?M-,^HM-wM-~H^IM-wM-~MN^G^HM-117 Jan 20 17:17:51 vtks kernel: PPP BSD Compression module registered Jan 20 17:17:51 vtks kernel: PPP Deflate Compression module registered Jan 20 17:17:51 vtks pppd[3556]: Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Jan 20 17:17:51 vtks pppd[3556]: local IP address 172.16.0.14 Jan 20 17:17:51 vtks pppd[3556]: remote IP address 172.16.0.1 Jan 20 17:17:51 vtks pppd[3556]: primary DNS address 81.13.18.194 Jan 20 17:17:51 vtks pppd[3556]: secondary DNS address 81.13.18.194 Jan 20 17:17:54 vtks pppd[3556]: Received bad configure-ack: 1a 04 78 00 18 04 78 00 15 03 2f Jan 20 17:18:18 vtks last message repeated 8 times Jan 20 17:18:21 vtks pppd[3556]: CCP: timeout sending Config-Requests Jan 20 17:18:25 vtks kernel: ppp: compressor dropped pkt Jan 20 17:18:37 vtks last message repeated 9 times Jan 20 17:18:42 vtks pptp[3583]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 5 'Echo-Request' Jan 20 17:18:42 vtks pptp[3583]: anon log[logecho:pptp_ctrl.c:659]: Echo Reply received. Jan 20 17:18:45 vtks kernel: ppp: compressor dropped pkt Jan 20 17:19:16 vtks last message repeated 4 times Jan 20 17:19:41 vtks kernel: ppp: compressor dropped pkt Jan 20 17:19:42 vtks pptp[3583]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 5 'Echo-Request' Jan 20 17:19:42 vtks pptp[3583]: anon log[logecho:pptp_ctrl.c:659]: Echo Reply received. Jan 20 17:19:58 vtks kernel: ppp: compressor dropped pkt Jan 20 17:20:32 vtks last message repeated 2 times Jan 20 17:20:41 vtks last message repeated 13 times Jan 20 17:20:42 vtks pptp[3583]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 5 'Echo-Request' Jan 20 17:20:42 vtks pptp[3583]: anon log[logecho:pptp_ctrl.c:659]: Echo Reply received. Jan 20 17:20:44 vtks kernel: ppp: compressor dropped pkt Jan 20 17:20:50 vtks kernel: ppp: compressor dropped pkt Jan 20 17:20:56 vtks pppd[3556]: Terminating on signal 2.