Howto install openconnect IPsec Client on Centos 6.3 or Redhat RHEL

Howto install openconnect IPsec Client on Centos 6.3 or Redhat RHEL

1. Install epel repository in your Centos or Redhat



2. Install openconnect by yum

[root@localhost ~]# yum install NetworkManager-openconnect
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base:
* epel:
* extras:
* updates:
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package NetworkManager-openconnect.x86_64 0: will be installed
–> Processing Dependency: openconnect >= 0.99 for package: NetworkManager-openc onnect-
–> Processing Dependency: for packa ge: NetworkManager-openconnect-
–> Processing Dependency: for package: NetworkMana ger-openconnect-
–> Running transaction check
—> Package openconnect.x86_64 0:4.07-1.el6 will be installed
–> Processing Dependency: vpnc for package: openconnect-4.07-1.el6.x86_64
–> Running transaction check
—> Package vpnc.x86_64 0:0.5.3-4.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved================================================================================
Package Arch Version Repository
NetworkManager-openconnect x86_64 epel 68 k
Installing for dependencies:
openconnect x86_64 4.07-1.el6 epel 131 k
vpnc x86_64 0.5.3-4.el6 epel 82 kTransaction Summary
Install 3 Package(s)Total download size: 281 k
Installed size: 821 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): NetworkManager-openconnect- | 68 kB 00:00
(2/3): openconnect-4.07-1.el6.x86_64.rpm | 131 kB 00:00
(3/3): vpnc-0.5.3-4.el6.x86_64.rpm | 82 kB 00:00
Total 61 kB/s | 281 kB 00:04
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <>
Package: epel-release-6-8.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : vpnc-0.5.3-4.el6.x86_64 1/3
Installing : openconnect-4.07-1.el6.x86_64 2/3
Installing : NetworkManager-openconnect- 3/3
Verifying : openconnect-4.07-1.el6.x86_64 1/3
Verifying : NetworkManager-openconnect- 2/3
Verifying : vpnc-0.5.3-4.el6.x86_64 3/3

NetworkManager-openconnect.x86_64 0:

Dependency Installed:
openconnect.x86_64 0:4.07-1.el6 vpnc.x86_64 0:0.5.3-4.el6

[root@localhost ~]#

3. How to use openconnect to connect to VPN Server

[root@localhost ~]# openconnect -u kevin –authgroup=’IT’

That’s all. Thanks for using

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>