Strongswan on Odroid C2

Guides May 21, 2020

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
lzip --decompress *.lz
tar xf *.tar -C /opt/gmp_src --strip-components=1
cd /opt/gmp_src
make -j4
make check
make install

Strongswan with systemd and crypto

cd /tmp
mkdir /opt/strongswan
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