Shrew Soft VPN on Ubuntu

The Shrew Soft vpn client is far and away the best IPSEC vpn client available and it is fantastic for creating mobile vpn connections to firewalls like pfSense. Unfortunately, the version in the 12.04 repository is years out of date and uses qt3 which has also been superseded at this point by qt4. To get a modern, fully functional version of the client working on Ubuntu 12.04 (also tested on 13.04), follow these steps:

  1. Download the client from https://www.shrew.net/download/ike
  2. Open a terminal window and enter the folllowing to install dependancies:
    sudo apt-get install cmake libqt4-core libqt4-dev libqt4-gui libedit-dev libssl-dev checkinstall flex bison
  3. Then enter the following to decompress it:
    cd ~/Downloads && tar zxvf ike-2.2.1-release.tgz  && cd ike
  4. Enter the following to prep the installation:
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES
  5. And enter the following to compile, create a .deb and install:
    sudo checkinstall -y
  6. Now download this archive and extract it: ike_additions.tar
  7. Install the iked daemon with these commands:
    cd ~/Downloads && sudo cp iked /etc/init.d && sudo chmod +x /etc/init.d/iked && sudo update-rc.d iked defaults
  8. Copy iked.conf from it’s included sample file
    sudo cp /etc/iked.conf.sample /etc/iked.conf
  9. Start the iked service
    sudo service iked start
  10. Finally, copy the .desktop file included in the iked_additions.tar.gz archive and copy it to /usr/share/applications for a menu item.
    sudo cp Shrew\ Soft\ VPN.desktop /usr/share/applications/