{"id":4181,"date":"2014-11-01T13:04:45","date_gmt":"2014-11-01T13:04:45","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=4181"},"modified":"2014-11-01T13:04:45","modified_gmt":"2014-11-01T13:04:45","slug":"connect-cisco-anyconnect-vpn-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2014\/11\/connect-cisco-anyconnect-vpn-ubuntu\/","title":{"rendered":"How to Connect to Cisco AnyConnect VPN in Ubuntu"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/11\/cisco-vpn-icon.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/11\/cisco-vpn-icon.png\" alt=\"Connect to Cisco Anyconnect VPN\" width=\"245\" height=\"245\" class=\"aligncenter size-full wp-image-4182\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/11\/cisco-vpn-icon.png 245w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2014\/11\/cisco-vpn-icon-150x150.png 150w\" sizes=\"auto, (max-width: 245px) 100vw, 245px\" \/><\/a><\/p>\n<p>Many businesses and universities use Cisco AnyConnect as their VPN solution. Although there is a native Linux client offered by Cisco, it is not very well supported, and in some cases the user does not have access to the client. Fortunately, there is a simple solution to this problem \u2013 thanks to OpenConnect.<\/p>\n<p>OpenConnect is a client for Cisco\u2019s AnyConnect VPN. It is free software, and is released under the GNU LGPL v2.1 . Getting connected to an AnyConnect VPN is easy with OpenConnect and the TUN\/TAP kernel module that is built into the Linux kernel.<\/p>\n<p>1. First run command below to active th TUN module:<\/p>\n<pre style=\"border:none;\">sudo \/sbin\/modprobe tun<\/pre>\n<p>2. Install OpenConnect:<\/p>\n<pre style=\"border:none;\">sudo apt-get install openconnect<\/pre>\n<p>3. Connect to VPN, run:<\/p>\n<pre style=\"border:none;\">sudo openconnect yourvpn.example.com<\/pre>\n<p>It prompts you to type in username and password. Once these are authenticated, the VPN connection is established.<\/p>\n<p>Keep the terminal window open while the VPN session is active. Network resources such as shared folders, NAS drives, servers, and workstations should now be available. To close the VPN session, press Ctrl+Z in the terminal window. Abruptly killing the terminal window without properly closing out of the VPN session can lead to issues when attempting to reconnect in the future. These issues can typically be resolved by restarting the machine.<\/p>\n<p>For OpenConnect manual, run command <code>man openconnect<\/code>.<\/p>\n<p style=\"text-align:right;\">via: <a href=\"http:\/\/fullcirclemagazine.org\/issue-90\/\">Full Circle Magazine<\/a>, author: Lev, Lazinskiy<\/p>","protected":false},"excerpt":{"rendered":"<p>Many businesses and universities use Cisco AnyConnect as their VPN solution. Although there is a native Linux client offered by Cisco, it is not very well supported, and in some cases the user does not have access to the client. Fortunately, there is a simple solution to this problem \u2013 thanks to OpenConnect. OpenConnect is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4181","post","type-post","status-publish","format-standard","hentry","category-howtos"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/4181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=4181"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/4181\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=4181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=4181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=4181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}