VPN Connection in Edgy

When I was using Xubuntu Dapper, I was able to set up a PPTP connection to my workplace VPN. Overall it was a pretty easy exercise.

Unfortunately in Xubuntu Edgy, it’s been more troublesome.

I initially installed and ran pptpconfig (as I did for Dapper), which was configured in the same way. However when I tried to make the PPTP connection I was greeted with the unhappy error

Using interface ppp0
pptpconfig: monitoring interface ppp0
Connect: ppp0 /dev/pts/1
CHAP authentication succeeded
MPPE 128-bit stateless compression enabled
Cannot determine ethernet address for proxy ARP

In the end I was able to figure this out; by installing the network-manager framework. Unfortunately this requires some amount of GNOME dependencies. The sort of dependecies that I’m quite prepared to pay, especially since most have been already installed for other applications. On lower end machines, this may not the way you want to go.

The packages you need are in both the main and universe repositories; network-manager, network-manager-pptp and network-manager-gnome.

Once you have them installed, simply run nm-applet (if it’s not already running) from the command line, and the applet should appear in the system tray of your panel.

From there it is quite simple to setup the VPN connection.

First click the applet and then VPN connections and Configure VPN.

Configure VPN using Network Manager

When the dialog opens, choose to Add a new connection, and follow the prompts.

Add New VPN Connection

VPN Connection Setup

Type of VPN Connection

Next simply enter in the name you wish to call the connection, and the IP address of the VPN.

VPN Connection Settings

In the authentication tab, check the Refuse EAP checkbox and then you are done.

VPN Authentication Settings

Confirm Settings

To connect to the VPN click on the applet and choose the connection.

Connect to VPN

Finally enter in the username and password required to make the connection.

Enter Login Information

If the connection is successful the network-manager applet should have a little lock over it. Then you are away!

VPN Connected!




27 Responses to “VPN Connection in Edgy”


  1. 1 Adam Friday December 8, 2006 at 12:00 pm

    Hi – I am able to add the vpn entry, but then the name doesn’t appear in the applet – any suggestions?

  2. 2 Adam Saturday December 9, 2006 at 4:29 am

    Fixed – just needed a restart. “Killall gnome-panel” is not enough. Cheers.

  3. 3 Sutekh Tuesday December 12, 2006 at 8:58 am

    Hey glad you sorted it out. I have been having my own problems.

    This applet worked great for a day, and has been a pain ever since.

    I can start it and use it without any issues, yet when I logout or restart, the session manager starts six instances of the applet when I log back in.

  4. 4 Pedro Silva Tuesday January 2, 2007 at 1:24 pm

    Whenever you save a session, it goes on the cache:

    ~/.cache/xfce4/desktop

    Clean it up once in a while, that should do it.

  5. 5 Eugene Saturday February 24, 2007 at 6:35 pm

    Hello! It seems to be a piece of cake, but unfortunately I have a trouble like this: I tryed both GNOME (network-manager) and KDE (knetworkmanager), but I was always told that no network device is found. Thus in GNOME version I can’t even configure vpn connections. In KDE frontend I can configure connection, but I’m not able to start it because it appears to the program that I don’t have any network devices, though I have one working inside a local network.. Any suggestions? :-/

  6. 6 Alan Monday February 26, 2007 at 2:44 pm

    How do you set a domain name with network manager? Is it possible?

  7. 7 Alan Monday February 26, 2007 at 2:46 pm

    Ah yes, and Eugene, I had the same problem you did. All I had to do was to select the packages of network manager and reinstall them.

  8. 8 Neil Saturday March 3, 2007 at 12:10 pm

    I had a similar issue (cannot find all my network devices) in the ubuntu gnome implementation of networkmanager. googling gave me some invaluable advice:
    seems if you had a device activated using the normal networking aplet (system>administration>network) before you install networkmanager – that device(s) will not be seen by networkmanager.

    seems you have to manually edit your inte4rfaces file (sudo gedit /etc/network/interfaces) and remove ALL other lines except the first 2 referring to the lopback interface. Back up your interfaces file first.

    should look like this.
    =========
    auto lo
    iface lo inet loopback
    ========

    then restart

  9. 9 Sutekh Saturday March 3, 2007 at 1:46 pm

    Yes that’s correct. You can find that and more info on Network Manager here.

    Ubuntu Community Docs – Network Manager

    Network Manager is still troublesome for me as it won’t manage my wireless connection (D-Link card using the RT61 chipset). The only way I can use my wireless is through the /etc/network/interfaces method.

  10. 10 giovanni recchia Thursday March 8, 2007 at 2:30 am

    how to use certificate files (downloaded on windows on domain login) to connect to a secure vpn?

  11. 11 BrianC Monday March 12, 2007 at 12:53 pm

    Is it possible to NOT have all traffic tunneled through the VPN connection?

  12. 12 Loculi Monday April 16, 2007 at 1:51 am

    Worked great in Feisty, thanks.

  13. 13 JMoney Wednesday April 18, 2007 at 3:28 pm

    This failed for me as I do not know how to specify “Use Domain”

    Any suggestions?

  14. 14 mshade Wednesday April 25, 2007 at 11:14 am

    To specify a name, just do it windows style.. like this: MyDomain\username

    :)

  15. 15 bambit Wednesday May 9, 2007 at 3:54 am

    Hello! This post has solved two of my biggest networking problems in Feisty, connecting to the vpn at our office, and doing so with a wireless connection! Talk about two birds with one stone.

    There’s just one strange thing about my network-manager though. I have two VPN configurations left over from two previous attempts at making the vpn connection run (install-deinstall-reinstall) and now I have three vpn connection choices, only one of which i can edit (the newest one, the one that works).

    Any idea how i can remove the two other VPN configs and just leave this third one that works?

  16. 16 bambit Wednesday May 9, 2007 at 9:28 am

    Looks like i found an answer to my question after a good night’s sleep. Went to gconf-editor via terminal and unset the keys for the two non-working connections. When I exited gconf-editor I checked the VPN list in network-manager and now only the working one is listed.

  17. 17 franz see Monday July 9, 2007 at 12:39 pm

    I can’t seem to connect to my VPN Connection. And the error message is just

    VPN Failure
    Could not start the VPN Connection MyVPN.

    Any ideas how to fix this, or as to how I can get more details from the error message so that I know what went wrong?

    Thanks

  18. 18 markofando Tuesday October 2, 2007 at 12:14 pm

    Want to start your private office arms race right now?

    I just got my own USB rocket launcher :-) Awsome thing.

    Plug into your computer and you got a remote controlled office missile launcher with 360 degrees horizontal and 45 degree vertival rotation with a range of more than 6 meters – which gives you a coverage of 113 square meters round your workplace.
    You can get the gadget here: http://tinyurl.com/2qul3c

    Check out the video they have on the page.

    Cheers

    Marko Fando

  19. 19 GetFoesttet Friday October 5, 2007 at 11:44 am

    I’ve got an Amazon gift certificate burning holes in my pocket,
    and I want to get the most bang for my buck.

    Enter the Secret Amazon Web Pages:

    http://tinyurl.com/38sojf

    This is where you’re going to find the “latest sales, rebates, and limited-time offers” from
    Amazon, and you can score some pretty deep discounts if you’re a savvy shopper.

    Next, there’s the special Sale link. This is open every Friday, and ONLY on Fridays.

    You can find the same good discounts here as you would in hidden Deals, although some
    Fridays you can really get lucky and make off like an Amazon bandit – I’ve seen discounts
    there as low as 75% off sticker price.

  20. 20 Scold Wednesday October 24, 2007 at 7:43 pm

    bambit: “Looks like i found an answer to my question after a good night’s sleep. Went to gconf-editor via terminal and unset the keys for the two non-working connections. When I exited gconf-editor I checked the VPN list in network-manager and now only the working one is listed.”

    Thanks, solved my problem :)

  21. 21 music Monday January 7, 2008 at 10:45 am

    very interesting.
    i’m adding in RSS Reader

  22. 22 Phil W Saturday January 19, 2008 at 6:18 am

    I’m using Ubuntu 7.10 with Network Manager (and am an Ubuntu virgin). The basic setup is fairly straight forward (given an import file and the required certificate and key files). What I can’t figure out how to do is to get DNS configured appropriately. Let me explain…

    When not VPNed to work I can access internet sites fine. When I do VPN into work I can access my company’s internal network but cannot access the internet. What seems to happen is that the resolv.conf file is automagically updated when the VPN is started and reset on disconnect.

    When disconnected it has my ISP’s DNS server listed. When connected it has my company’s DNS server.

    How can I influence the content of this file to keep my ISP’s DNS server as the primary entry and my company’s DNS server as a secondary entry?

    There is an update-resolv-conf in /etc/openvpn (the directory I put the certificate and key files) which has a comment about setting it as the up and down file in the *.conf file for the VPN connection. However, the Network Manager doesn’t provide any inputs for up and down scripts. How do I configure it? Or is there some other way of doing this?

    Help please!

  23. 23 Anonymous VPN Monday February 11, 2008 at 6:03 am

    Hi, i represent anonymous vpn service based in Canada. You can use it for anonymous surfing.

  24. 24 Incokboff Monday October 27, 2008 at 9:14 pm

    I am sure that there are plenty of positives out there, but what have you seen for yourself? Are you trying to play with my clever forecast Oh, good joke) How do you get a frog off the back window of your car? Use the rear defrogger.


  1. 1 Access Microsoft VPN using PPTP « customising life Trackback on Monday November 20, 2006 at 8:09 pm
  2. 2 127.0.0.1 Trackback on Friday May 25, 2007 at 5:20 pm

Leave a Reply




a

My Photos

James getting dragged up the hill

Another insane run

img_0104

Insane run

More Photos

How many times has this site been visited?

  • 180,618 apparently

Site Stats