LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-08-2014, 12:30 PM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Rep: Reputation: 20
Question 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.

Last edited by aihaike; 10-09-2014 at 10:55 AM.
 
Old 10-09-2014, 10:54 AM   #2
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
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.
 
Old 10-12-2014, 04:59 AM   #3
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Original Poster
Rep: Reputation: 20
Unhappy

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PPTP VPN Server Issue w/VPN access AmberM Linux - Newbie 2 02-17-2014 10:34 AM
Unix PPTP VPN Connection with split tunneling issue anooptriv Linux - Networking 1 07-25-2013 02:16 PM
VPN pptp Connection GroverB Linux - Networking 1 10-29-2005 03:13 PM
problem of PPTP VPN connection. kocu Linux - Networking 9 09-24-2005 02:08 PM
PPTP VPN remote connection from home powah Linux - Networking 0 05-02-2005 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration