How to install Shrew Soft IPsec VPN on Linux

Source: Internet
Author: User

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.

  1. $ sudo apt-get install cmake libqt4-core libqt4-dev libqt4-gui libedit-dev libssl-dev checkinstall flex bison
  2. $ wget https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2
  3. $ tar xvfvj ike-2.2.1-release.tbz2
  4. $ cd ike
  5. $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES .
  6. $ make
  7. $ sudo make install
  8. $ cd /etc/
  9. $ 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.

  1. $ sudo yum install qt-devel cmake gcc-c++ openssl-devel libedit-devel flex bison
  2. $ wget https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2
  3. $ tar xvfvj ike-2.2.1-release.tbz2
  4. $ cd ike
  5. $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES .
  6. $ make
  7. $ sudo make install
  8. $ cd /etc/
  9. $ 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.

  1. $ sudo vi /etc/ld.so.conf
  1. include /usr/lib/

Reload the shared library file bound to the runtime to accommodate the newly installed Shared Library:

  1. $ 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.

  1. $ 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
  1. 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.

  1. $ sudo ldconfig

Verify whether libss_ike is added to the library path:

  1. $ ldconfig -p | grep ike
  1. libss_ike.so.2.2.1(libc6,x86-64)=>/lib/libss_ike.so.2.2.1
  2. 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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.