Ubuntu VPN PPTP Client setting

http://www.ubuntugeek.com/howto-configure-pptp-vpn-in-ubuntu-intrepid-and-jaunty.html

irst you need to install the following packages

sudo apt-get install pptp-linux ppp pptpd

Configuration

First you need to edit /etc/ppp/chap-secrets file

sudo gedit /etc/ppp/chap-secrets

add the following line

Username PPTP Password *

Save and exit the file

Create /etc/ppp/peers/vpn1 file using the following command.The ‘peers' folder may be owned by group ‘dip' so get around that by adding yourself to the group .

touch /etc/ppp/peers/vpn1

sudo gedit /etc/ppp/peers/vpn1

Add the following to the vpn1 file

pty "pptp remote.gateway.address.here --nolaunchpppd"
name Username
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn1
mru 1412
mtu 1412

Edit the options.pptp file as required. commented out the ‘refuse-chap' and ‘refuse-mschap-v2′ lines.

Establish the VPN connection with

sudo pppd call vpn1

or

sudo pon vpn1

Drop the connection when you're done with

sudo poff vpn1

create ‘/etc/ppp/ip-up.d/route-traffic' as follows.

#!/bin/bash
NET="10.0.0.0/8″
IFACE="ppp0″
route add -net ${NET} dev ${IFACE}

Make the file executable using the following command

sudo chmod 755 /etc/ppp/ip-up.d/route-traffic

Replace the "10.0...." address with the range of addresses you need to access on your remote machine.

So, to get the VPN up in Jaunty, Do the following (in /etc/ppp/ip-up.d)

sudo pon vpn1

sudo ./route-traffic

                                                                                                                        • -

official tutorial (without routing)
https://help.ubuntu.com/community/VPNClient#PPTP

Tutorial with routing
http://www.cyberciti.biz/tips/howto-configure-ubuntu-fedora-linux-pptp-client.html

Debian Level
http://pptpclient.sourceforge.net/howto-debian.phtml#configure_by_hand

to make tunnel server
http://silverlinux.blogspot.hk/2012/05/how-to-pptp-vpn-on-ubuntu-1204-pptpd.html