@kurispesso

Как правильно настроить клиент VPN?

На руках имею логин и пароль. Создал такой файл настроек:

nodetach
persist
maxfail 0
name "xxxx"
password "xxxx"
nodefaultroute
replacedefaultroute
remotename vpn1
pty "pptp xx.xx.xx.xx --nolaunchpppd"


Подключаюсь вот так:
pon vpn1 debug dump logfd 2 nodetach

На выходе:
using channel 120
Using interface ppp1
Connect: ppp1 <--> /dev/pts/30
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2dc2e87> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2dc2e87> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2dc2e87> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2dc2e87> <pcomp> <accomp>]
Script pptp xx.xx.xx.xx --nolaunchpppd finished (pid 7526), status = 0x0
Modem hangup
Connection terminated.
using channel 123
Using interface ppp1
Connect: ppp1 <--> /dev/pts/30
anon warn[open_unixsock:pptp_callmgr.c:348]: Call manager for  xx.xx.xx.xx is already running.
anon fatal[callmgr_main:pptp_callmgr.c:129]: Could not open unix socket for  xx.xx.xx.xx
anon fatal[open_callmgr:pptp.c:487]: Call manager exited with error 256
Script pptp  xx.xx.xx.xx  --nolaunchpppd finished (pid 7578), status = 0x1
Modem hangup
Connection terminated.
using channel 124
Using interface ppp1
Connect: ppp1 <--> /dev/pts/30
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x77f735a3> <pcomp> <accomp>]
Script pptp  xx.xx.xx.xx --nolaunchpppd finished (pid 7605), status = 0x0
Modem hangup
Connection terminated.
using channel 127
Using interface ppp1
Connect: ppp1 <--> /dev/pts/30
anon warn[open_unixsock:pptp_callmgr.c:348]: Call manager for  xx.xx.xx.xx is already running.
anon fatal[callmgr_main:pptp_callmgr.c:129]: Could not open unix socket for  xx.xx.xx.xx
anon fatal[open_callmgr:pptp.c:487]: Call manager exited with error 256
Modem hangup
Connection terminated.
using channel 128
Using interface ppp1
Connect: ppp1 <--> /dev/pts/30
Script pptp  xx.xx.xx.xx --nolaunchpppd finished (pid 7651), status = 0x1
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xf216a098> <pcomp> <accomp>]
Script pptp  xx.xx.xx.xx --nolaunchpppd finished (pid 7679), status = 0x0
Modem hangup
Connection terminated.
using channel 130
Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x88ee5cdf> <pcomp> <accomp>]
..................................................................................................................................


В итоге подключения нет. Админ VPN сервера говорит, что отвечает на запрос:
122901 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xf2cd7b01> <pcomp> <accomp>]


Но клиент его не получает. Подскажите, что я делаю не правильно.
  • Вопрос задан
  • 1663 просмотра
Пригласить эксперта
Ответы на вопрос 1
Albibek
@Albibek
Вопросы есть? А если найду?
anon warn[open_unixsock:pptp_callmgr.c:348]: Call manager for  xx.xx.xx.xx is already running.
anon fatal[callmgr_main:pptp_callmgr.c:129]: Could not open unix socket for  xx.xx.xx.xx
anon fatal[open_callmgr:pptp.c:487]: Call manager exited with error 256

В этих строках вам сообщают, что менеджер подключений к этому IP уже открыт. Соответственно, уже создан файл сокета, и при установлении соединения новый сокет создать не удаётся. Разберитесь, почему существует файл сокета и где он находится(например, при помощи strace).
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы