Install LibreSwan

A pre-built Libreswan package is available on the following OS distributions: RHEL, Fedora, CentOS, Ubuntu, Debian, Arch, Apline, OpenWrt and FreeBSD. On NetBSD the package sources are in wip/libreswan.

We install LibreSwan and Net-tools through Ubuntu package on EC2 Customer Gateway by the command below:

sudo apt update -y && sudo apt install libreswan net-tools -y

Checking the result of installation:

ss -v && ipsec --help

lb