Solved

Problem with set up VPN Client in Ubuntu 10.04

Posted on 2011-03-03
1
1,625 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Secure VPN Connection terminated locally by the Client.  Reason 442: Failed to enable Virtual Adapter. If you receive this error on Windows 8 or Windows 8.1 while trying to connect with the Cisco VPN Client then the solution is a simple registry f…
OpenVPN is a great open source VPN server that is capable of providing quick and easy VPN access to your network on the cheap.  By default the software is configured to allow open access to your network.  But what if you want to restrict users to on…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

821 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