Solved

Problem with set up VPN Client in Ubuntu 10.04

Posted on 2011-03-03
1
1,619 Views
Last Modified: 2016-02-10
Hello all. Mates I have problem with setting up VPN connection in Ubuntu 10.04. OK before explanation my problem my environment:
uname -a
Linux Ubuntu-1004-lucid-64-minimal 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux

Open in new window

dpkg -l | grep pptp
ii  network-manager-pptp                 0.8-0ubuntu3                                    network management framework (PPTP plugin)
ii  network-manager-pptp-gnome           0.8-0ubuntu3                                    network management framework (PPTP plugin, G
ii  pptp-linux                           1.7.2-4                                         Point-to-Point Tunneling Protocol (PPTP) Cli
ii  pptpd                                1.3.4-2.1ubuntu1.9.04.2                         PoPToP Point to Point Tunneling Server

Open in new window

Ubuntu box have constant wired connection to Internet. I don't use Network manager, all settings in /etc/network/interfaces.
I need to connect my Ubuntu box to VPN Server on persistent basis. VPN Server (mpd5) based on FreeBSD 7.3 OS and it require compression (set ccp yes mppc) and encryption (set mppc yes e40, set mppc yes e128,  set mppc yes stateless).
When I try to connect to VPN server via command "pppd call basaa debug dump logfd 2 nodetach" I receive errors:
sh: basaa: not found
Failed to set PPP kernel option flags: Inappropriate ioctl for device
Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
Script basaa [VPNServer_IP] --nolaunchpppd finished (pid 10985), status = 0x7f
Modem hangup
Connection terminated.

Open in new window

It's my settings:

/etc/ppp/options

ms-dns 192.168.111.111
ms-wins 192.168.111.110
asyncmap 0
noauth
crtscts
lock
modem
hide-password
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx

/etc/ppp/options.pptp:
lock
noauth
refuse-pap
refuse-eap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate
require-mppe-128

/etc/ppp/peers/basaa:
pty "basaa [VPNServer_IP] --nolaunchpppd"
name vpnuser_login
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam basaa

/etc/ppp/ip-up.d/route-traffic:
#!/bin/sh

NET="192.168.111.0/24"
IFACE="ppp0"
#IFACE=$1
route add -net ${NET} dev ${IFACE}

/etc/ppp/chap-secret:
VPNUser_login     PPTP    "VPNUser_password"      *

Open in new window


Thanks for answers.
0
Comment
Question by:dm07
1 Comment
 
LVL 1

Accepted Solution

by:
dm07 earned 0 total points
ID: 35027889
The problem was solved. There was mistake in /etc/ppp/peers/basaa in pty command.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now