From the Cisco AnyConnect client (Mac and Android), I connect to a given VPN using only:

  • Server Address
  • Username
  • Password

How do I accomplish the same in Linux Mint 18.1 (based on Ubuntu 16.04 Xenial)?

I have the network-manager-vpnc-gnome package, which is what I assume I need; however it requires a "Group Name."

enter image description here


This works:

# use your own vpn gateway

# connect
sudo openvpn --mktun --dev tun1
sudo ifconfig tun1 up
# this command will prompt for credentials
sudo openconnect $my_vpn_gateway --interface=tun1

# disconnect
sudo ifconfig tun1 down
sudo openvpn --rmtun --dev tun1

Source: http://tuxdiary.com/2014/09/04/cisco-anyconnect-vpn-with-openvpn-openconnect/

  • While this works, I'll hold off a bit on marking it as the answer in case a GUI solution turns up. Nov 22 '17 at 19:34
  1. Use Server IP address:Port (e.g.: in Gateway. [Note : Make sure to replace with actual IP of the router and the port over which the VPN is running)
  2. Use User Name and Password and keep Group name blank.
  3. In IPv4 tab chose Automatic option and save it.
  • Thanks, Abhik, but as I mentioned in the OP, Group name is required--the Save button is disabled if it is empty. Nov 22 '17 at 2:10
  • Ok. Try once with username as group name, incase it works.
    – Abhik Bose
    Nov 22 '17 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.