Configuring VPN on Ubuntu 7.04

  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
This process has been made MUCH easier in Edgy and Feisty. I just never updated this...and I'm sorry. In order for legacy support, I'm leaving up Dapper/Breezy/Hoary instructions.

Feisty/Edgy

You will need NetworkManager installed:
Code:
sudo apt-get install network-manager-gnome network-manager-pptp
Then, a network icon will appear in your notification area. Select it, and then select VPN Connections > Configure VPN. Add your VPN to the list, and then in the terminal do the following:

Code:
sudo NetworkManager restart
Click the icon again, and go to VPN Connections and then select your VPN. Voila. You're connected!

Dapper/Breezy/Hoary
After much searching for how to connect to a plain old PPTP VPN, I finally figured out how to do it, and since there's no guide on here that doesn't relate to the Cisco client, I figured I'd post one. The source of this information is at the bottom of the post. Here goes:

1. First, you need to install the pptp-client for Linux. Open up the terminal and type in:

Code:
sudo apt-get install pptp-linux
2. Next, you will need to add a source to your sources.list file. Here's how.
Run this command.

Code:
sudo gedit /etc/apt/sources.list
When the window pops up (gedit), append the following lines to the end of the file:

Code:
# James Cameron's PPTP GUI packaging
deb http://quozl.netrek.org/pptp/pptpconfig ./
Save it and close gedit.

3. Run these commands in the terminal:

Code:
sudo apt-get update
sudo apt-get install pptpconfig
4. To run pptpconfig, simply use this command in the terminal:

Code:
sudo pptpconfig

**NOTE: You must run pptpconfig as root, otherwise, it will not work.

5. Enter in the info for your VPN to the GUI, click "Add," select the server you just added by clicking on it, and then hit "Start." Make sure that your options are set, as well. If you are unsure of what options your VPN needs, contact your system administrator.

For a more complete guide, check out this site:
http://pptpclient.sourceforge.net/ho....phtml#install


Finally, if you are getting this error: "cannot determine proxy address for arp" and VPN simply hangs there, then you need to add a route manually like this:

route add -net 192.168.0.0 netmask 255.255.255.0 dev ppp0

Also, you need to add the require-mppe-128 option if you get this error: "LCP terminated by peer (weird characters)"