Solved

Problem with set up VPN Client in Ubuntu 10.04

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

828 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