7

Is there a easy way to install this VPN client IKE software over Ubuntu 20.04?

upToLinux
  • 121
  • 1
    What is the question by the way? If you already have answer - please create two parts - the question and the answer with your findings and works. – N0rbert May 27 '20 at 17:19

4 Answers4

7

Following the above general instructions and after googling some time, I found also the way to enable ShRew to run full, including GUI, on ubuntu 20+ / Debian 9+.

You can download the full software from https://mega.nz/file/4xV10IqZ#nmAJYGBJvdcI5jhp61DAIHhM4ILKg8x2hHYTpJD6eP4

Execute the script install_shrew.sh and VOILA!!!

Please, test and share (if you like) :)

Thanks to Kulfy for his good work

5

After reading some forum, I decide to recompile sources under Ubuntu 20.04 because this packet is out of maintenance until some years. The dependencies, packets and libraries were no longer installable in 20.04 LTS. I've fixed issue to old library and created a patch to apply at the last version of source file (shrew soft iked and ikec). This procedure you will find here below and the patch file is in my blog.

Download the extract the sources.

wget https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2
sudo tar jxpvf ike-2.2.1-release.tbz2
cd ike

Copy in this directory ike.patch file.

patch -p1 < ike.patch
sudo apt-get install build-essential libssl-dev libaudio-dev libcups2-dev  cmake libedit-dev g++

Now recompile with NO-GUI directive.

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=NO -DETCDIR=/etc -DNATT=YES
make
sudo make install
sudo iked 

Check if yourServer.vpn file is present under your "~/.ike/sites/" directory. If no copy it without .vpn extension (like this: ~/.ike/sites/yourServer)

ikec -r yourServer -a

If all goes well, you should see at the end

...

"ii : tunnel enabled"

I hope that can help someone.

Kulfy
  • 17,696
upToLinux
  • 121
  • 1
    Thank you for this amazing patch. I can confirm it works. I found a bit difficult to download the code and there's also a dos2unix to perform before applying the patch, so I created a github repo giving you all the credit (https://github.com/MaxChinni/ike-for-ubuntu). – MaxChinni Jun 05 '20 at 14:02
  • Thanks Max. Next time I'll create a GitHub instead of simple blog too. – upToLinux Jun 06 '20 at 21:56
  • dude thanks i was dying inside with the patch not working. – Chop Labalagun Oct 18 '21 at 22:43
4

Another possible answer is using deb packages:

  1. Add QT4 Repo:

    sudo add-apt-repository ppa:rock-core/qt4
    sudo apt update
    

    Source: How to Install Qt4 Libraries in Ubuntu 20.04 LTS | UbuntuHandbook

  2. Install dependencies:

    apt install cmake libssl-dev libedit-dev flex bison qt4-default qt4-qmake
    

    Source: Forticlient IPSec VPN on Ubuntu Linux • lorenzo milesi

  3. Download old deb files (from bionic):

    Install the debs with sudo dpkg -i <file.deb> in the order:

    libssl1.0.0 
    ike
    ike-qtgui
    

    In my case (AMD64):

    mkdir ~/ikedebs
    cd ~/ikedebs
    wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
    wget http://mirrors.kernel.org/ubuntu/pool/universe/i/ike/ike_2.2.1+dfsg-6_amd64.deb
    wget http://mirrors.kernel.org/ubuntu/pool/universe/i/ike/ike-qtgui_2.2.1+dfsg-6_amd64.deb
    sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
    sudo dpkg -i ike_2.2.1+dfsg-6_amd64.deb
    sudo dpkg -i ike-qtgui_2.2.1+dfsg-6_amd64.deb
    

and voila!

Once installed, launch using

sudo iked

to start daemon.

for GUI:

qikea
Simon Zyx
  • 113
  • 6
1

A friend make it compatible for ubuntu 22.04 and qt5

https://github.com/dolomighty/shrewsoft-ike

You must compile it.