K
K
kurispesso2015-04-21 21:46:59
VPN
kurispesso, 2015-04-21 21:46:59

How to set up a VPN client correctly?

I have my username and password. Created the following settings file:

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

I connect like this:
pon vpn1 debug dump logfd 2 nodetach
At the output:
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>]
..................................................................................................................................

As a result, there is no connection. The VPN server admin says he is responding to the request:
122901 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0xf2cd7b01> <pcomp> <accomp>]

But the client does not receive it. Tell me what I'm doing wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey N, 2015-06-04
@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

These lines tell you that the connection manager for this IP is already open. Accordingly, the socket file has already been created, and when a connection is established, a new socket cannot be created. Understand why the socket file exists and where it is located (using strace, for example).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question