LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   PPTP VPN connection issue (https://www.linuxquestions.org/questions/linux-networking-3/pptp-vpn-connection-issue-4175521451/)

aihaike 10-08-2014 12:30 PM

PPTP VPN connection issue
 
Dear all,

Im running Slacware64 14.1 and I can't figure how to make my VPN connection working.
I get the error:
Code:

anon fatal[get_ip_address:pptp.c:449]: gethostbyname 'call': HOST NOT FOUND
I've set up 4 files in /etc/ppp:
Code:

#options.pptp
lock noauth nodeflate nobsdcomp

Code:

#chap-secrets
myname myvpn mypassword *

Code:

#peers/myvpn
pty "pptp xxx.zz.w.yyy --nolaunchpppd"
name myname
remotename myvpn
ipparam myvpn
mtu 1490
mru 1490
require-mschap
require-mschap-v2
require-mppe-128
file /etc/ppp/options.pptp
persist

Code:

#ip-up
#!/bin/sh
/sbin/route add -host xxx.zz.w.yyy

I start the connection doing
Code:

pptp call myvpn
Can someone tell me what I do wrong?
Thank you,

Eric.

aihaike 10-09-2014 10:54 AM

Actually,

when I do
Code:

pptpsetup --create myvpn --server xxx.zz.w.yyy  --username myname --password mypassword  --start
it does something:
Code:

Using interface ppp0
Connect: ppp0 <--> /dev/pts/4
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup

I'm really can't figure, hopefully someone already have this experience.
Thank you.

aihaike 10-12-2014 04:59 AM

ok so, if I use pppd without --start like this:
Code:

pptpsetup --create myvpn --server xxx.zz.w.yyy  --username myname --password mypassword
Here is what happen when I then call pppd:
Code:

bash-4.2# pppd -d  call myvpn dump debug logfd 2 nodetach require-mppe
pppd options in effect:
debug debug            # (from command line)
-d -d          # (from command line)
nodetach                # (from command line)
logfd 2        # (from command line)
dump            # (from command line)
noauth          # (from /etc/ppp/peers/myvpn)
name myname              # (from /etc/ppp/peers/myvpn)
remotename myvpn        # (from /etc/ppp/peers/myvpn)
                # (from /etc/ppp/peers/myvpn)
pty pptp  xxx.zz.w.yyy --nolaunchpppd          # (from /etc/ppp/peers/myvpn)
crtscts        # (from /etc/ppp/options)
                # (from /etc/ppp/options)
asyncmap 0              # (from /etc/ppp/options)
lcp-echo-failure 4              # (from /etc/ppp/options)
lcp-echo-interval 30            # (from /etc/ppp/options)
ipparam myvpn            # (from /etc/ppp/peers/myvpn)
proxyarp                # (from /etc/ppp/options)
nobsdcomp              # (from /etc/ppp/peers/myvpn)
nodeflate              # (from /etc/ppp/peers/myvpn)
require-mppe            # (from command line)
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x81ae3ae4> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Waiting for 1 child processes...
  script pptp  xxx.zz.w.yyy --nolaunchpppd, pid 22046
Script pptp  xxx.zz.w.yyy --nolaunchpppd finished (pid 22046), status = 0x0
bash-4.2#

I noticed that ppp0 is not up, but during the few seconds pppd is running I can make it up (via ifconfig) by hand and do
Code:

route -n
/sbin/ip route add default dev ppp0

But that change doesn't change anything, pppd still stops.
I've also created a file /etc/modules.conf and containing:
Code:

alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldics-14 ppp_synctty
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
alias tty-ldisc-14 ppp_synctty

That doesn't help as well.


All times are GMT -5. The time now is 03:54 PM.