Page 1 of 1

Shrew Soft vpn client install

Posted: 2014/10/19 18:14:07
by undrln
Can you help me, how install Shrew Soft vpn client on Centos7 64bit? can't find rpm....
ike-2.2.1-release.tgz

Package 1:qt-4.8.5-8.el7.x86_64 already installed and latest version
Package 1:qt-devel-4.8.5-8.el7.x86_64 already installed and latest version
Package cmake-2.8.11-4.el7.x86_64 already installed and latest version
Package qt3-3.3.8b-51.el7.x86_64 already installed and latest version
Package qt3-devel-3.3.8b-51.el7.x86_64 already installed and latest version

# cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using install prefix /usr ...
-- Using etc install path /etc ...
-- Using bin install path /usr/bin ...
-- Using sbin install path /usr/sbin ...
-- Using lib install path /usr/lib ...
-- Using man install path /usr/share/man ...
-- Looking for crypt in crypt
-- Looking for crypt in crypt - found
CMake Error at CMakeLists.txt:291 (message):
Unable to locate libedit include files

-- Configuring incomplete, errors occurred!

# ls -la
total 88
drwxr-xr-x. 7 root root 4096 Oct 19 20:07 .
drwxrwxrwx. 4 root root 4096 Oct 19 19:16 ..
-rw-r--r--. 1 root root 11699 Oct 19 19:30 CMakeCache.txt
drwxr-xr-x. 4 root root 80 Oct 19 19:30 CMakeFiles
-rw-r--r--. 1 root root 8258 May 1 2013 CMakeLists.txt
-rw-r--r--. 1 root root 188 Feb 5 2009 CONTRIB.TXT
drwxr-xr-x. 2 root root 4096 Oct 19 19:16 docs
-rw-r--r--. 1 root root 472 Apr 7 2013 .gitignore
-rw-r--r--. 1 root root 1978 Jun 5 2013 LICENSE.TXT
drwxr-xr-x. 3 root root 19 Oct 19 19:16 package
-rw-r--r--. 1 root root 15760 Nov 28 2012 README.TXT
drwxr-xr-x. 5 root root 45 Oct 19 19:16 script
drwxr-xr-x. 15 root root 4096 Oct 19 19:16 source
-rw-r--r--. 1 root root 18425 Aug 6 2011 TODO.TXT
# pwd
/root/Desktop/vpn/ike

# locate libedit
/usr/lib64/libedit.so.0
/usr/lib64/libedit.so.0.0.42
/usr/lib64/libreoffice/program/libeditenglo.so
/usr/lib64/qt-3.3/lib/libeditor.a
/usr/lib64/qt-3.3/lib/libeditor.prl
/usr/share/doc/libedit-3.0
/usr/share/doc/libedit-3.0/COPYING
/usr/share/doc/libedit-3.0/ChangeLog
/usr/share/doc/libedit-3.0/THANKS

Re: Shrew Soft vpn client install

Posted: 2014/10/19 20:10:42
by undrln
at last done it :)
yum install qt3 qt3-devel cmake
yum install qt4 qt4-devel
yum install libedit-devel //this one!

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
-- Using install prefix /usr ...
-- Using etc install path /etc ...
-- Using bin install path /usr/bin ...
-- Using sbin install path /usr/sbin ...
-- Using lib install path /usr/lib ...
-- Using man install path /usr/share/man ...
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using library -lpthread
-- Looking for pthread_mutex_timedlock in -lpthread
-- Looking for pthread_mutex_timedlock in -lpthread - found
-- Using binary /usr/bin/flex ...
-- Using binary /usr/bin/bison ...
-- Performing Test NATT_FOUND
-- Performing Test NATT_FOUND - Success
-- Enabled NAT Traversal support ...
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.5")
-- Enabled Client QT GUI support ...
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Desktop/vpn/ike
#

make
make install


/usr/sbin/iked &
[1] 13316
/usr/sbin/iked: error while loading shared libraries: libss_ike.so.2.2.1: cannot open shared object file: No such file or directory
[1]+ Exit 127 /usr/sbin/iked

locate libss_ike
/root/Desktop/vpn/ike/source/libike/libss_ike.so
/root/Desktop/vpn/ike/source/libike/libss_ike.so.2.2.1
/usr/lib/libss_ike.so
/usr/lib/libss_ike.so.2.2.1

/etc/ld.so.conf

include ld.so.conf.d/*.conf
include /usr/lib/

ldconfig

ldconfig -p | grep libss_ike.so.2.2.1
libss_ike.so.2.2.1 (libc6,x86-64) => /lib/libss_ike.so.2.2.1
#

/usr/sbin/iked &
[1] 13699
# !! : unable to open /etc/iked.conf


cp /etc/iked.conf.sample /etc/iked.conf

cat /etc/iked.conf
#
# sample client iked.conf file
#

daemon
{
# bind to ports
socket ike 500;
socket natt 4500;

# log output
log_level error;
log_file "/var/log/iked.log";
# pcap_decrypt "/var/log/ike-decrypt.pcap";
# pcap_encrypt "/var/log/ike-encrypt.pcap";

# retry settings
retry_delay 10;
retry_count 2;
}


/usr/sbin/iked &

[1] 14751
# ii : created ike socket 0.0.0.0:500
ii : created natt socket 0.0.0.0:4500
## : IKE Daemon, ver 2.2.1
## : Copyright 2013 Shrew Soft Inc.
## : This product linked OpenSSL 1.0.1e-fips 11 Feb 2013

/usr/bin/qikea

...
File> Import> xxx.pcf > Open > Connect

config loaded for site 'xxxx'
attached to key daemon ...
peer configured
iskamp proposal configured
esp proposal configured
client configured
local id configured
remote id configured
pre-shared key configured
bringing up tunnel ...
network device configured
tunnel enabled

...
Shrew Soft vpn client on CentOS7 works!!! :)
ssh user@server.domain.com