?
Solved

Problem with set up VPN Client in Ubuntu 10.04

Posted on 2011-03-03
1
Medium Priority
?
1,671 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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