Access Cisco AnyConnect VPN from Linux Mint 18

6,376

This works:

# use your own vpn gateway
my_vpn_gateway=your.vpn.gateway.com

# 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/

Share:
6,376

Related videos on Youtube

Jamie Jackson
Author by

Jamie Jackson

Updated on September 18, 2022

Comments

  • Jamie Jackson
    Jamie Jackson over 1 year

    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

  • Jamie Jackson
    Jamie Jackson over 6 years
    Thanks, Abhik, but as I mentioned in the OP, Group name is required--the Save button is disabled if it is empty.
  • Abhik Bose
    Abhik Bose over 6 years
    Ok. Try once with username as group name, incase it works.
  • Jamie Jackson
    Jamie Jackson over 6 years
    While this works, I'll hold off a bit on marking it as the answer in case a GUI solution turns up.