Tag Info

Hot answers tagged

77

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 ...


24

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 ...


11

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: #! ...


5

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, ...


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 ...


3

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

Set address to 10.0.0.0 and netmask to 255.0.0.0.


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.


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. ...


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

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'm getting exactly the same thing happening. My Cisco VPN was working last week, but fails now. I downgraded libgcrypt11 to 1.5.0-3ubuntu2.1 but that doesn't resolve the problem for me. Anybody else having issues with this?


1

For me the cause of VPN not working anymore was that my stored passwords where somehow wrong although I didn't change them. I found that out by starting NetworkManager VPNC in the shell using the following command (in Siduction, that is, but I guess it might be similar in Ubuntu): sudo /usr/lib/NetworkManager/nm-vpnc-service --debug Then I started the ...


1

I had the same problem, and tried the downgrade of libcrypt11 ... fresh install of 14.04.2 LTS 64-bit, and so the downgrade was not in the repository and I had to download the deb and use dpkg to install it: curl http://launchpadlibrarian.net/122471093/libgcrypt11_1.5.0-3ubuntu2.1_amd64.deb >lc.deb sudo dpkg -i lc.deb The downgrade didn't work, however ...


1

By default VPNC uses an ifmode of virtual point to point interface(ie tun). But it also has another mode that you can use, virtual ethernet interface(ie tap). Try using that, ie: sudo vpnc example.conf --local-port 0 --ifmode tap


1

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 ...


1

Add the result of a test to your prompt If the command ps ax -o comm| grep [v]pnc gives no output whatsoever when there is no active vpn connection, but it does when there is, you could edit your .bashrc file by: adding the following small section to it: if [ -z "$(ps ax -o comm| grep [v]pnc)" ]; then test="no vpn active" else test="vpn active" ...


1

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


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

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

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

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

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

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

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 .... .... ...


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).


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 ...



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