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

i386: http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-or-redhat-6-3-rhel/

x64: http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-x86_64-or-redhat-6-3/

2. Install openconnect by yum

[root@localhost ~]# yum install NetworkManager-openconnect
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.uhost.hk
* epel: ftp.cuhk.edu.hk
* extras: centos.uhost.hk
* updates: centos.uhost.hk
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package NetworkManager-openconnect.x86_64 0:0.8.6.0-1.el6 will be installed
–> Processing Dependency: openconnect >= 0.99 for package: NetworkManager-openc onnect-0.8.6.0-1.el6.x86_64
–> Processing Dependency: libopenconnect.so.2(OPENCONNECT_2.0)(64bit) for packa ge: NetworkManager-openconnect-0.8.6.0-1.el6.x86_64
–> Processing Dependency: libopenconnect.so.2()(64bit) for package: NetworkMana ger-openconnect-0.8.6.0-1.el6.x86_64
–> 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
Size
================================================================================
Installing:
NetworkManager-openconnect x86_64 0.8.6.0-1.el6 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-0.8.6.0-1.el6.x86_64.rpm | 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) <epel@fedoraproject.org>
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-0.8.6.0-1.el6.x86_64 3/3
Verifying : openconnect-4.07-1.el6.x86_64 1/3
Verifying : NetworkManager-openconnect-0.8.6.0-1.el6.x86_64 2/3
Verifying : vpnc-0.5.3-4.el6.x86_64 3/3

Installed:
NetworkManager-openconnect.x86_64 0:0.8.6.0-1.el6

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

Complete!
[root@localhost ~]#

3. How to use openconnect to connect to VPN Server

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

That’s all. Thanks for using IThelpblog.com.

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>