Hot answers tagged

102

If you want to interact with NetworkManager from the command line you can use the "nmcli" command. list all NM connections: nmcli con start connection (wifi, vpn, etc): nmcli con up id ConnectionName down connection: nmcli con down id ConnectionName (more nmcli commands in the nmcli manpage). Also note that regular users usually don't have permission ...


50

If you don't need the "official" Cisco AnyConnect VPN software, I highly recommend installing the "network-manager-openconnect-gnome" package in the Ubuntu Repository. It uses OpenConnect which is an open source client for AnyConnect. Anyhow, that package allows for you to configure and manager your AnyConnect VPN connections through the normal network ...


14

On Ubuntu, you don't need to install the Cisco VPN Client: NetworkManager includes support for Cisco IPSec VPNs. The following steps will walk you through a successful installation and configuration of your VPN client. 1) Ubuntu ships by default with the plugin for the Point-to-Point Tunneling Protocol (PPTP), but we need the plugin for the Cisco Compatible ...


12

The solution suggested by con-f-use should work but doesn't, due to a long-standing bug: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/280571 There are workarounds though. For recent NetworkManager versions, there is a commandline utitility, nmcli, that can be edited and saved as something like /etc/NetworkManager/dispatcher.d/vpn-up: #! ...


8

sudo apt-­get install network­-manager­-pptp sudo apt­-get install network­-manager­-vpnc sudo apt-­get install network­-manager­-openvpn exit If prompted for your password, type it, and press Enter. If you're told that a package “is already the newest version,” ignore it and continue with the next command. If asked to “continue [Y/n],” press Y, ...


6

In Ubuntu Trusty 14.04 VPN auto connect store on GUI on individual saved wi-fi settings. System settings - Network - check interested Wi-Fi or Lan - Settings (General tab) - select "Auto connect to VPN... "


5

The nosuid mount option is used when the eCryptfs mount is set up. This is done for security reasons to prevent privilege escalation attacks. You can move the ncsvc binary outside of your home directory (just like you did with /opt/juniper/) and create a symlink from your ~/.juniper_networks/network_connect/ncsvc to the new location.


4

I encountered a similar issue earlier. I observed that vpnagentd does not load because of libatk1 and vpnui does not load because of libxml2. Installing the 32-bit versions of these libraries resolves the issues. You should install ia32-libs to resolve the issue using sudo apt-get update sudo apt-get install ia32-libs This should resolve the issue for you ...


4

Here's how I got this working with Ubuntu 12.10: First install the following sudo apt-get install vpnc sudo apt-get install network-manager-vpnc sudo apt-get install network-manager-vpnc-gnome Using the network-manager create a new VPN connection, set at least the following: Gateway User name Group name If the given group password is encrypted you can ...


3

I got "address", "netmask", and "gateway" in this way: 1) connect to VPN normally 2) run "ifconfig" command. output is somthing like this: eth0 .... .... lo .... .... ppp0 Link encap:Point-to-Point Protocol inet addr:172.16.11.15 P-t-P:172.16.11.1 Mask:255.255.255.255 .... .... ...


3

You will first need to get the vpnc package and install it. Fire up a terminal and enter this command: sudo apt-get install vpnc You will then need to make a text file with the following information: IPSec gateway *gateway.to.use* IPSec ID *groupname* IPSec secret *passwordforgroup* Xauth username *myusername* Xauth password *mypassword* This file ...


3

You need the Gnome package as well. So the magical incantation is this: sudo apt-get install network-manager-vpnc network-manager-vpnc-gnome Then you can simply add a VPN connection by launching the configuration of Network Manager and importing a .pcf file with the settings. Or by using a drop-down dialog in the settings of Network Manager and adding the ...


2

If I remember correctly it worked for a while and doesn't anymore. This might be obvious, but sometimes I don't think of it. Did you try reinstallation like: sudo apt-get purge network-manager-vpn sudo apt-get install network-manager-vpnc Then: Now I want this VPN connection to automatically activate when I'm in a certain wireless network. ...


2

ihashacks's answer with Matt's comments worked for me... almost. Had to tweak one line. my password-flag line actually read: "Xauth password-flag". The accepted answer wouldn't work for me until I changed to the following [vpn] ... Xauth password-flag=0 IPSec secret-flags=0 [vpn-secrets] Xauth password=<my pw> ## This is the one I changed. IPSec ...


2

I found that in my case the plugin was failing because vpnc was not happy about the encryption method peer selected (single) DES as "encryption" method. This algorithm is considered too weak today If your vpn concentrator admin still insists on using DES use the "--enable-1des" option. This message could be only discovered by stracing the vpnc process. ...


2

Is this bug your problem? I ran into this and ended up doing a distribution upgrade to 12.10 to get passed it... Can’t connect to VPN from GNOME Shell It's been a while since this happened and I don't entirely recall what I ran into, but your problem seems very familiar to me.


2

Looks like there must be a bug in libgcrypt11=1.5.0-3ubuntu2.2. After rolling back to libgcrypt11=1.5.0-3ubuntu2.1 things are working again... sudo apt-get install libgcrypt11=1.5.0-3ubuntu2.1 I've filed a bug report on launchpad.


1

I'd probably look at something as simple as: #!/bin/bash pgrep vpnc STATUS=${?} if [ ${STATUS} -ne 0]; then /usr/sbin/vpnc configname fi That'll then launch vpnc if it isn't already running.


1

I can only think of two work around for the encrypted /home partition. If you connect to a VPN via a website, start firefox with: sudo firefox since it is likely your /root is not encrypted. After network connect starts you can close the browser and leave the client running in the background. This is from what was mentioned before. Basically have the ...


1

vpnc is pretty ancient, try openconnect instead. http://www.infradead.org/openconnect/index.html it supports smartcards


1

Alright, hope someone finds this useful and doesn't have to spend hours trying to figure it out. The two clients in question were fixed after lowering their MTU to 1200 (1300 worked but had one hiccup while connecting from a coffee shop, so left it at 1200 for both). So all you have to do is include ifconfig tun0 mtu 1200 in your ...


1

You are on the right track. the resolv.conf was changed for VPN use and was not changed back for normal use as a result of the crash. Deleting the old resolv.conf may help. You can make a backup copy of the file and delete the original with this single command: sudo mv /etc/resolv.conf /etc/backup.resolv.conf A new resolv.conf will be generated as and ...


1

Your /etc/resolv.conf looks correct both before and after you connect, assuming that you have a local forwarding nameserver running which listens at 127.0.0.1. In Ubuntu 12.04 Desktop such a nameserver is running by default. To see the nameserver process, run ps -elf|grep dnsmasq The reason your colleague's /etc/resolv.conf looks different is that your ...


1

Here are procedure that worked for me on Ubuntu 64 bit desktop 14.04.3 sudo apt-get install -y lib32z1 lib32ncurses5 lib32bz2-1.0 libxml2:i386 libstdc++6:i386 libgtk2.0-0:i386 libpango1.0-0:i386 Now, I can ./vpnui to launch.


1

In my casevpnagentd would not load. Installing the packages sudo apt-get install lib32z1 lib32ncurses5 however, resolved the problem for me. The terminal promted the message to install these, when I tried to install ia32-libs, which seems to be obsolete.


1

Just in case you do want the Ciso Anyconnect client working take a look at this blog. Just disable the Firefox Iced Tea web plugin and go to your VPN site. Have Ubuntu download the VPN installer and run the shell script. In my case Cisco Anyconnect VPN client was installed and available under the Internet section and works fine.


1

Never mind, I installed OpenConnect with the instructions here: http://faq.oit.gatech.edu/content/cisco-anyconnect-installation-instructions-linux Finally, I don't have to deal with that Cisco garbage!


1

I've just upgraded my system to Ubuntu 12.04 64-bit. Here is my working solution, that does not need any command line magics. So you have to install some packages to work it correctly. vpnc network-manager-vpnc *network-manager-vpnc-gnome (if you're using gnome) Now you can access VPN via clicking Network icon on Notification Area.


1

Download and install HPLIP directly from the HP OPEN SOURCE website. http://hplipopensource.com/hplip-web/downloads.html Click on DOWNLOAD HPLIP. Find the downloaded file and right click on it and select PERMISSIONS. Select MAKE EXECUTABLE. Click OK. Right click on the file again and select OPEN then EXECUTE. Follow the instuctions. *Reason it works is ...


1

I saw that this bug was fixed and relased only for Ubuntu Precise and I think you should mark it as affecting you and ask there for a possible solution to the problem in Oneiric (a merge of the released fix in Oneiric or another solution).



Only top voted, non community-wiki answers of a minimum length are eligible