Page 1 of 7 123 ... LastLast
Results 1 to 10 of 228

Thread: HOWTO: Connect to a Microsoft PPTP VPN

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn
    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 x86

    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!

    Feisty/Edgy AMD64 (thanks go to nyvalbant)
    Grab the AMD64 Packages from this page.

    Convert and install them using this command:
    Code:
    sudo alien filename.rpm
    sudo dpkg -i filename.deb
    Next, install pptpconfig:
    Code:
    sudo apt-get install pptpconfig
    You may not be able to connect using pptpconfig directly, but you can create your profile in it and connect using:
    Code:
    pon <profile name>
    (give that a minute or so to connect; check ifconfig periodically for a ppp0 entry)

    Finally, after you have a ppp0 network, you may need to fix your routing table using something like:
    Code:
    sudo route add -net 11.22.0.0 netmask 255.255.0.0 dev ppp0
    (substitute 11.22.0.0 for your network)

    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
    Last edited by endersshadow; July 7th, 2007 at 07:39 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    Malm÷, Sweden
    Beans
    42
    Distro
    Ubuntu 6.06

    Re: HOWTO: Connect to a Microsoft PPTP VPN


  3. #3
    arnieboy Guest

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    yes but thats for hoary.. and its a good thing that this has been ported to the breezy forums (even though the instructions are identical). good job.

  4. #4
    Join Date
    Jun 2005
    Location
    Malm÷, Sweden
    Beans
    42
    Distro
    Ubuntu 6.06

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    Quote Originally Posted by arnieboy
    yes but thats for hoary.. and its a good thing that this has been ported to the breezy forums (even though the instructions are identical). good job.

    I wrote is cuz there is more info in that post e.g. How to start it without using terminal and make a shortcut using gksudo.

  5. #5
    Join Date
    Sep 2005
    Beans
    38

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    OK, installed ptppconfig and it's telling me that I have successfully connected to my VPN network at work.

    Now what? How do I browse this network? I've tried entering various addresses into Nautilus and Firefox but it isn't working. Assuming I have all the address and network names right, can't I just mount this as a network location? Say by selecting "Places/Connect to Server..."?

    My VPN is running, how do I browse the remote network?

    Thanks,

    Joe

  6. #6
    Join Date
    Jun 2005
    Location
    Malm÷, Sweden
    Beans
    42
    Distro
    Ubuntu 6.06

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    Joe, under the routing tab I suggest that you use the "Client to LAN" Routing Style so only the necessary traffic go via the VPN.

    Then there is the "Routes To Be Added Via Tunnel".

    So click on "Edit Network Routes.." and add the network that u want to connect to using the tunnel.

    For example if its a standard 192.168.1. net then u write

    Network: 192.168.1.0/24
    Name: Whatever

    Then u press update and u are good to go.

  7. #7
    Join Date
    Mar 2007
    Beans
    12
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    Quote Originally Posted by jmooney View Post
    OK, installed ptppconfig and it's telling me that I have successfully connected to my VPN network at work.

    Now what? How do I browse this network? I've tried entering various addresses into Nautilus and Firefox but it isn't working. Assuming I have all the address and network names right, can't I just mount this as a network location? Say by selecting "Places/Connect to Server..."?

    My VPN is running, how do I browse the remote network?

    Thanks,

    Joe
    You need to install samba and smbfs to actually mount windows shares.
    In nautilus: in the address field type smb:/// to browse the windows "network places"

  8. #8
    Join Date
    Dec 2005
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    First off thanks for this post, I have utilized twice now on two different installs.
    My situation is this, I am able to connect (at least it says I am connected), but I am unable to hit my works secure intranet site.
    I am unable to check my emails.
    I am unable to surf the inet period.

    Following is a log from pptpconfig:
    pptpconfig: debug information dump begins
    WARNING: security sensitive information follows
    pptpconfig 1.2 2004/06/19 08:57:15
    # pppd --version
    pppd version 2.4.3
    # uname -a
    Linux DC-Comics 2.6.12-10-386 #1 Thu Dec 22 11:37:10 UTC 2005 i686 GNU/Linux
    # grep mppe /proc/modules
    # modinfo ppp_mppe
    Array
    (
    [name] => kwevpn
    [server] => xxx.xxx.xxx.xxx
    [domain] =>
    [username] => login
    [password] => (hidden by pptpconfig)
    [pppd-options] =>
    [pptp-options] =>
    [resolv] =>
    [dns-options] =>
    [routing] => routing_client_to_lan
    [usepeerdns] => 1
    [require-mppe] => 1
    [nomppe-40] =>
    [nomppe-128] =>
    [refuse-eap] => 1
    [mppe-stateful] =>
    [autostart] =>
    [iconify] =>
    [persist] =>
    [debug] => 1
    [client-to-lan] =>
    )
    # route -n (before pppd)
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.99.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
    0.0.0.0 192.168.99.99 0.0.0.0 UG 0 0 0 eth1
    pptpconfig: debug information dump ends,
    Cannot determine ethernet address for proxy ARP
    local IP address xxx.xxx.xxx.xxx
    remote IP address xxx.xxx.xxx.xxx
    primary DNS address xxx.xxx.xxx.xxx
    secondary DNS address xxx.xxx.xxx.xxx
    # route -n (after pppd exit)
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    xxx.xxx.xxx.xxx 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
    192.168.99.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
    0.0.0.0 192.168.99.99 0.0.0.0 UG 0 0 0 eth1
    pptpconfig: pppd process exit status 0 (started)
    ip route add xxx.xxx.xxx.xxx via 192.168.99.99 dev eth1 src 192.168.99.105
    RTNETLINK answers: File exists

    pptpconfig: command failed, exit code 2
    pptpconfig: routes added to remote networks
    pptpconfig: DNS changes made to /etc/resolv.conf
    pptpconfig: connected
    # route -n (after completion)
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    xxx.xxx.xxx.xxx 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
    192.168.99.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
    0.0.0.0 192.168.99.99 0.0.0.0 UG 0 0 0 eth1

    Please point me into the correct direction so that I can at least get my work email to function.

    Thanks in advance for your guidence and support.

    BD

  9. #9
    Join Date
    Dec 2005
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    I have tried the many different configurations within pptpconfig and the only one that appears to connect is the one listed above.
    I can't figure out how to stop this thing once it is started, without rebooting, in order to do more research on the subject.

    I work for a large global company, and the network admins do not have time to assist with this as they are swamped with other issues and have basically told me that it is not support software and they reccomend that I stay with the windows setup.

    Dual boot is a hassle, if I can not get this pptp to work then I fear I will have to bag ubuntu (linux) for a while.

    I have spent on this stupid pptp problem now a total of 63 hours (21 hours alone out of the last 28 hours)(19 straight yesterday).

    Here is the kick in the pants, this is the only thing keeping me from dropping windows, it is like the switch to cut power to windows is just one foot out of reach and no matter what angle I try I can not reach it.
    Last edited by Bone Down; January 8th, 2006 at 09:43 PM.

  10. #10
    Join Date
    May 2005
    Location
    Encinitas, CA
    Beans
    114
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Connect to a Microsoft PPTP VPN

    I really wish I could help more, but we have already passed the extent of my knowledge on the subject. Maybe someone who knows more could jump in and help?
    Please consider joining TeamUbuntu!
    https://wiki.ubuntu.com/FoldingAtHomeTeamUbuntu

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •