Difference between revisions of "OpenConnect"

From ArchWiki
Jump to: navigation, search
m (added additional manual example)
(Manual)
Line 12: Line 12:
  
 
===Manual===
 
===Manual===
Run OpenConnect as root to your gateway:
 
# openconnect mygateway.com
 
  
More advanced invocation with username and password:
+
Download a more up-to-date script that OpenConnect will use to setup routing and DNS information
# echo -n 'passwd' | openconnect -u user --disable-ipv6 --passwd-on-stdin mygateway.com
+
 
+
==== IPv6 ====
+
"The standard vpnc−script shipped with vpnc 0.5.3 is not capable of setting up IPv6 routes; the one from git://git.infradead.org/users/dwmw2/vpnc−scripts.git will be required."
+
 
+
Download the script that OpenConnect will use to setup routing and DNS information
+
 
(should be an AUR package for this eventually):
 
(should be an AUR package for this eventually):
  
Line 29: Line 21:
  
 
  # chmod +x vpnc-script
 
  # chmod +x vpnc-script
 +
 +
{{Warning|The script has not been adapted to Arch Linux. You will need to set your /etc/resolv.conf manually to the proper information.}}
  
 
Now run OpenConnect as root with the script downloaded above, and provide the gateway:
 
Now run OpenConnect as root with the script downloaded above, and provide the gateway:
  
 
  # openconnect --script ./vpnc-script mygateway.com
 
  # openconnect --script ./vpnc-script mygateway.com
 +
 +
More advanced invocation with username and password:
 +
# echo -n 'passwd' | openconnect -u user --disable-ipv6 --passwd-on-stdin mygateway.com
  
 
==External links==
 
==External links==
 
*[http://www.infradead.org/openconnect.html OpenConnect]
 
*[http://www.infradead.org/openconnect.html OpenConnect]

Revision as of 15:47, 22 May 2013

From OpenConnect:

OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers, and probably others.

Installation

Install the openconnect package from the Official Repositories.

Usage

With NetworkManager

Install the networkmanager-openconnect package from the Official Repositories. Then configure and connect with nm-applet (network manager's tray icon) or other utility.

Manual

Download a more up-to-date script that OpenConnect will use to setup routing and DNS information (should be an AUR package for this eventually):

# wget http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script

Make it executable:

# chmod +x vpnc-script
Warning: The script has not been adapted to Arch Linux. You will need to set your /etc/resolv.conf manually to the proper information.

Now run OpenConnect as root with the script downloaded above, and provide the gateway:

# openconnect --script ./vpnc-script mygateway.com

More advanced invocation with username and password:

# echo -n 'passwd' | openconnect -u user --disable-ipv6 --passwd-on-stdin mygateway.com

External links