How to install Shrew Soft IPsec VPN on Linux
Problem: I need to connect to an IPSec VPN gateway. In view of this, I tried to use the Shrew Soft VPN Client, which is a free version. How can I install the Shrew Soft VPN Client to [a Linux release]?
There are many commercial VPN gateways on the market, along with their own proprietary VPN Client software. Although there are also many open-source VPN Server/client alternatives, they usually lack complex IPsec support, such as Internet Key Exchange (IKE), which is a standard IPsec protocol, used to reinforce VPN key exchange and verify security. Shrew Soft VPN is a free IPsec VPN Client that supports multiple verification methods, key exchange, encryption, and firewall penetration options.
The following describes how to install the Shrew Soft VPN Client to the Linux platform.
First, download its source code from the official site.
Install Shrew VPN Client to Debian, Ubuntu or Linux Mint
The Shrew Soft VPN Client GUI requires Qt 4.x. Therefore, as a dependency, you need to install its development file.
$ sudo apt-get install cmake libqt4-core libqt4-dev libqt4-gui libedit-dev libssl-dev checkinstall flex bison
$ wget https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2
$ tar xvfvj ike-2.2.1-release.tbz2
$ cd ike
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES .
$ make
$ sudo make install
$ cd /etc/
$ sudo mv iked.conf.sample iked.conf
Install Shrew VPN Client to CentOS, Fedora or RHEL
Similar to Debian-based systems, you need to install a bunch of dependency packages, including Qt4, before compiling.
$ sudo yum install qt-devel cmake gcc-c++ openssl-devel libedit-devel flex bison
$ wget https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2
$ tar xvfvj ike-2.2.1-release.tbz2
$ cd ike
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES .
$ make
$ sudo make install
$ cd /etc/
$ sudo mv iked.conf.sample iked.conf
In the Red Hat-based system, you need to use a text editor to open the/etc/ld. so. conf file and add the following lines.
$ sudo vi /etc/ld.so.conf
include /usr/lib/
Reload the shared library file bound to the runtime to accommodate the newly installed Shared Library:
$ sudo ldconfig
Start Shrew VPN Client
First, start the IKE daemon (iked ). The daemon serves as the VPN Client to communicate with the remote host through IPSec through the IKE protocol.
$ sudo iked
Now, start qikea, which is a front-end of an IPsec VPN Client. This GUI application allows you to manage remote site configurations and initialize VPN connections.
To create a new VPN configuration, click "add" and enter the VPN site configuration. After the configuration is created, you can click Configure to initialize the VPN connection.
Troubleshooting
I encountered the following error when running iked.
Iked: error while loading shared libraries: libss_ike.so.2.2.1: cannot open shared object file: No such file or directory
To solve this problem, you need to update the dynamic linker to accommodate the libss_ike library. Add the path of the library file to the/etc/ld. so. conf file and run the ldconfig command.
$ sudo ldconfig
Verify whether libss_ike is added to the library path:
$ ldconfig -p | grep ike
libss_ike.so.2.2.1(libc6,x86-64)=>/lib/libss_ike.so.2.2.1
libss_ike.so (libc6,x86-64)=>/lib/libss_ike.so
Via: http://ask.xmodulo.com/install-shrew-soft-ipsec-vpn-client-linux.html
Author: Dan Nanni Translator: GOLinux Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China
This article permanently updates the link address: