How to install IKE software on Ubuntu 20.04
Solution 1
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.
Solution 2
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
Solution 3
Another possible answer is using deb packages:
-
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
-
Install dependencies:
apt install cmake libssl-dev libedit-dev flex bison qt4-default qt4-qmake
Source: Forticlient IPSec VPN on Ubuntu Linux • lorenzo milesi
-
Download old deb files (from bionic):
- https://packages.ubuntu.com/bionic/libssl1.0.0
- https://packages.ubuntu.com/bionic/ike
- https://packages.ubuntu.com/bionic/net/ike-qtgui
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
upToLinux
I'm a Developer use GNU-Linux about 10 years. I use this kind of resources from many years and I never contributed it. This is a good time to do it....
Updated on September 18, 2022Comments
-
upToLinux over 1 year
Is there a easy way to install this VPN client IKE software over Ubuntu 20.04?
-
MaxChinni almost 4 yearsThank 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 (github.com/MaxChinni/ike-for-ubuntu). -
upToLinux almost 4 yearsThanks Max. Next time I'll create a GitHub instead of simple blog too.
-
Andrea Turbiglio almost 4 yearsworks like a charm :)
-
Jesus Ramon Rocha Velazquez almost 4 yearsHi, thanks, also if you are like me, using it as a Forticlient VPN IPSEC alternative, you can see the configurations for it here: link is in spanish but still can be understood with the pictures
-
phlegx over 3 yearsIt works, but you need to change /home/[USERNAME]/ path in some make files.
-
Hokascha almost 3 yearsalso you need to install libssl-dev
-
Chop Labalagun over 2 yearsdude thanks i was dying inside with the patch not working.