After upgrading to Ubuntu Intrepid, I had to find out that I was no longer able to use VPN via pptp in order to remote login into my company’s network.
After googling around, I finally found this:
[all variants] PPTP is still broken in Intrepid
In short, you need this:
$ sudo vi /etc/apt/sources.list
[… at the end …]
deb http://ppa.launchpad.net/network-manager/ubuntu intrepid main
$ sudo aptitude update && sudo aptitude safe-upgrade
This should add following packages to your existing installation:
- network-manager-pptp
- network-manager
- libmbca0
- libnm-util0
- libnm-glib0
$ sudo shutdown -r nowNow, configure VPN connection as required.
Update 1
If you’re still encountering problems, you might additionally check
gconf-editor. Run gconf-editor as user, not as root (so no sudo). Check to match your configuration to following configuration:
- Go to
/system/networking/connections/#/vpnwhere “#” is the correct network connection configuration holding your VPN configuration - Set your keys as given:
domain -> "your_domain" gateway -> "your_gateway" mppe-stateful -> yes refuse-chap -> yes refuse-eap -> yes refuse-mschap -> yes refuse-pap -> yes require-mppe-128 -> yes service-type -> "org.freedesktop.NetworkManager.pptp" user -> "your_user_name"
Update 2
After a new installation (see comments) it was not necessary to add the extra repository! Using
gconf-editor with given values works fine!
Update 3
Since there have been a few comments by now, I am adding this information:
When adding a key/value pair, add the answer “yes” as String, not as boolean!
This will do it!

Leo · Dec 6, 09:40 PM · #
Hey cool, I\'ll try it on monday.. But I guess there is a typo in the script, it better should be:sudo aptitude update && sudo aptitude safe-upgrade
Running aptitude with the upgrade option actually tells you that the option is obsolete and you should use safe-upgrade instead.
Hans · Dec 8, 02:52 PM · #
@Leo: You are absolutely right, typo! Corrected that! Thanks for the hint.Arend · Jan 13, 12:25 AM · #
Hey guys,Still does not work. I don\'t know what to do.
Help me please.
Ubuntu 8.10
VPN:
gateway: ip-address
User name:
Password:
Advanced:
IPv4 Settings:
Method: Automatic (VPN)
Arend · Jan 13, 12:26 AM · #
hitting the return key submitted my comment.Advanced:
Only MSCHAP and MSCHAPv2 are checked
Use Point-to-Point encryption (MPPE)
Hans · Jan 13, 09:06 PM · #
@Arend: I also unchecked MSCHAP! So, at the end, only MSCHAP2 is checked. But I already recognized, a friend of mine is also still having problems. If we can fix that I will update this post.So far, even with Ubuntu updates (I remember at least one update of the network-manager packages) I still have a working VPN system.
Will keep you informed ...
Pepeluiggi · Jan 29, 05:46 PM · #
I haved the same issues as above. So, I checked gconf-editor as Hans said. I realized that a parameter was lost in the configuration:system -> networking -> connections -> # -> vpn
,being #n the vpn connection configuration
The value missing is:
refuse-eap -> yes
I think that network-manager is not capable of checking this option in the GUI. So, after creating this key (string), and trying again establishing VPN, now it works OK.
Regards,
Jose Luis
nedenom · Feb 3, 03:59 AM · #
Just wanna say thank you. Adding the refuse-eap value fixed my problem as well.Hans · Feb 6, 12:48 PM · #
@nedenom, @Pepeluiggi: You\'re both welcome! Great to hear it worked for you.In fact, I just recently (3 days ago) installed Ubuntu on a laptop ... and this time I did not even have to include the extra repository. Just simply adding all variables and parameters via gconf-editor did it!!
Configurazione VPN in Network Manager » Ubuntu Pratico · Feb 7, 03:08 PM · #
[...] in giro per la rete ho trovato la soluzione in questo blog in inglese di cui cerco di riportare una fedele [...]Los · Feb 14, 03:13 AM · #
Once connected, how do you view the files on the remote server?Hans · Feb 16, 10:12 PM · #
@Los: I\'m not quite sure if I\'m getting you right. I am assuming you know what VPN is and what you can do with it. Once you have the tunnel established, you can do almost anything ... as if you were a local node. For example, you can go ahead and view web pages which can only be reached from internal local network.I hope I was able to help you a bit with this answer, Los.
Mike · Feb 21, 10:03 AM · #
Hey -- just wanted to let you know this worked for me too -- I had just about given up on getting the VPN working with 8.10.After upgrading the necessary packages, I had to jump into gconf-editor and add the keys you listed.
One thing that tripped me up was that I entered the keys as boolean values rather than as string values. Instead, I had to enter them as literal strings (e.g. \"yes\"). That would probably be a useful note to add to your directions.
Thanks again for the helpful post!
Mike · Feb 21, 10:05 AM · #
OK... to clarify my previous comment, I had to enter the keys as string values (the literal value \"yes\"). Entering them as booleans didn\'t work.elperrillo · Feb 21, 07:56 PM · #
I just wanted to say that (in xubuntu) if you run gconf-editor using the terminal and the command \"sudo gconf-editor\" you WILL NOT see the NETWORKING section. you have to click ALT - F2 enter gconf-editor on the field and hit run, that way it will work.It took me 2 hours to figure this out :)
Hans · Feb 22, 06:23 PM · #
@Mike: Yes, you\'re right: You have to add the \"yes\" as string, not boolean :-)@elperillo: Well, I mentioned that but it was said in parenthesis so you might have overflown that. Sorry for that, I changed the sentence now to make it clearer. Anyway, have fun now.
Paul Clevett · Feb 26, 07:58 PM · #
THANK YOU so much - worked for me too!matt · Mar 2, 08:57 AM · #
Thanks for this it helped me connect.I would like to configure this so that I can still use the local network and DNS on the machine I am connecting from as well as the remote network.
Currently when I connect the remote network becomes available but I cannot establish new connection to other networks. It worked that way in 8.04.
Dan Stringfellow · Mar 3, 12:20 PM · #
Hans - Thank you so much for this guide. Like the others here, I had just about given up on PPTP under 8.10. Now, if we could just get the routing issue resolved so only selected traffic goes through the VPN tunnel.Problemas con VPN - Ubuntu - Intrepid « Castudillob’s Weblog · Mar 21, 08:45 AM · #
[...] si mantenía los valores propuestos me daba error de conexión. No había caso!!! hasta que en otro Post que si atesoré encontré que un gringo sugería lo siguiente: [...]sipina · Mar 24, 08:44 PM · #
It works! Thank you very much for your post. Maybe it should be remarked what Mike said: take care of entering the eap key as string, otherwise it won\'t work. Best wishes from Spain.Hans · Mar 24, 08:57 PM · #
Thanks sipina ... made a small update to my post, it now includes this information. Nice that it worked for you. Have fun!