HOWTO: PPTP: Ubuntu Client connect to Windows VPN Server
By BlueT on Thursday 2011 March 17, 02:14 - Ubuntu - Permalink
The company I work for just starting to use Windows ISA Server (or whatever)
in some places.
And also, they use the Windows server to be a VPN server.
As Micro$oft doesn't officially support OpenVPN, and we don't consider IPsec to
be used for end users, they decide to use the fu*king insecure PPTP, which I
would definitely never wanna try.
That's where my Nightmare starts.
After some tries, I can use the VPN on my Android phones, and it seems works
fine on iPhone, too.
But I just can't get it work on my Ubuntu boxes. The VPN connection just cannot
established and I got error in my /var/log/syslog like this:
Mar 17 00:03:13 0xB1uE7 pppd17577: EAP:
peer reports authentication failure
No matter what, I got it work in the end, finally.
And these are the steps how to get it work.
- $ apt-get install network-manager-pptp
- $ sudo /etc/init.d/network-manager restart
- Click the NetworkManager Applet
- VPN Connection ->
Configure VPN ->
<VPN> -> Add
- Choose <Point-to-Point Tunneling Protocol (PPTP)> -> Create
- Fill out those neccessary informations and click Advanced
- In
Authentication
section, CANCEL <PAP>, <CHAP>, and <EAP>, KEEP ONLY <MSCHAP> and <MSCHAPv2> SELECTED. - In
Security and Compression
section, SELECT <Use Point-to-Point encryption (MPPE)>, and chooseSecurity
to be <All Available (Default)> - OK -> Accept -> Close
- Now click the NetworkManager Applet
- Click VPN Connection
and click the profile you just created.
- Wait for few seconds till it get connected.
- Done.
Hope this HOWTO can save a tree and a kitten.
Comments
I'm not keen on saving kittens but that sure helped me connect my ubuntouch to the company VPN !
thanks a lot.
Thanks, this was a great help!
I'm desperately trying to figure out how to set up the VPN WITHOUT the VPN applet. In other words, via the terminal. The machine I'm trying to set it up on can only be accessed remotely via SSH. Any ideas?
Thanks! It works like a charm!
AAAHHH!!! Been working on this for a while now and couldn't figure out why it wouldn't connect! I thought thatwhen I picked PPTP for hte cxn type, it's have me covered. Not the greatest with networking stuff, so this is much appreciated and got me connected to my home Win7 VPN. THANKS!!!!
When I try to connect with my android phone it says that the server hung up. I am sure my username and password are right because i set up very simple ones for testing.
Hi drobi026,
What kind of server are you using?
Any log you can check?
perfect! very useful, you saved me :P (and maybe a kitten and tree somewhere? )
I'm not keen on saving kittens but that sure helped me connect my ubuntouch
to the company VPN !
thanks a lot.
+1000
Awesome.thank you! 1st hit in google!
Thanks for your help man!
Tnx, it's working perfect...
Br, DaT
Thank you very much, you saved me driving 30 minutes at 2am! ymm(d|n)!
Hi,
Just a big thanks ! I finally was able to connect to my client VPN.
Thanks - helped me.
In regard to VPN from a terminal try using vpnc.
Thank you very much for this lifesaver! it definitely saved a lot of trees and kittens.