Strongswan on Odroid C2

Strongswan on Odroid C2

Here is a quick guide for getting strongswan built for an odroid C2 running debian. With full crypto support such as eap-mschapv2

sudo su
apt install -y libsystemd-dev pkg-config build-essential bzip2 lzip

Install crypto deps

cd /tmp
mkdir /opt/gmp_src
wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz
lzip --decompress *.lz
tar xf *.tar -C /opt/gmp_src --strip-components=1
cd /opt/gmp_src
./configure
make -j4
make check
make install

Strongswan with systemd and crypto

cd /tmp
mkdir /opt/strongswan
wget https://download.strongswan.org/strongswan.tar.bz2
tar xjvf strongswan.tar.bz2 -C /opt/strongswan --strip-components=1
./configure --prefix=/usr --sysconfdir=/etc --enable-eap-identity --enable-eap-mschapv2 --enable-md4 --enable-systemd --enable-swanctl --with-systemdsystemunitdir=/etc/systemd/system
make -j4
make install

Enable strongswan

systemctl enable strongswan-starter.service
systemctl enable strongswan

And you are off to the races