Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem with set up VPN Client in Ubuntu 10.04

Posted on 2011-03-03
1
Medium Priority
?
1,700 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

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…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

610 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