How to install IKE software on Ubuntu 20.04
Solution 1:
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 2:
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 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