HOWTO+-+PPTP+Linux+The+Easy+Way

Run the following to install pptp and pptpsetup: code sudo apt-get install pptp-linux sudo sed -i 's/= "\$DOMAIN\\\\"/\= "$DOMAIN\\\\\\\\"/g' /usr/sbin/pptpsetup code The sed command replaces a buggy string in the pptpsetup with the correct one.

Then download the following script (cyberpptp) and put it under your /bin directory: Make it executable: code chmod +x /bin/cyberpptp code Then run the above script as follows: code sudo cyberpptp --add      code  is just and identification name of your tunnel.  is the host name or IP address of the pptp server.  is the domain name of the company you are connected. (This is optional but you are strongly encouraged to use it, as if you do have similar usernames in different domains, you will not be able to connect to them without this option being set for each of them.)  the username of the pptp user to connect (put it in quotes)  the password of the pptp user (put it in quotes again)  the iprange of the remote network that it will be routed through the tunnel

An example of the above command follows: code sudo cyberpptp --add testtunnel 86.12.34.123 'myuser' 'myP@ssw0rd' 192.168.0.0/24 code Run as root or using sudo the command “pon ” to run as a background process. Use “poff ” to disconnect.

Use the cyberpptp script with --delete option, if you want to totally delete the tunnel.

If you have any problems read this link that it has info on how to setup the configuration files by hand (without using the pptpsetup tool)