Install strongSwan 5.9.1 on Amazon Linux 2

If you enable EPEL on Amazon Linux 2 and install strongSwan, strongSwan 5.7 will be installed. However, I could not find a way to install swanctl, so download and install strongSwan 5.9.1, which is the current release as of 2021/1 from the official website. That said, all you have to do is configure, make, and make install, but leave it as your own memorandum.


Installation procedure

Download from the following site. It didn't work unless I installed it as the root user, so I did sudo su - first.

sudo su - #Switch to root user
yum update -y
yum install wget gcc gmp-devel -y
md5sum strongswan-5.9.1.tar.gz #Check if the hash values ​​match
tar xzvf strongswan-5.9.1.tar.gz
cd strongswan-5.9.1
make install

systemctl settings



ExecStart=/usr/local/sbin/ipsec start
ExecStop=/usr/local/sbin/ipsec stop


Read swanctl settings at startup


charon {
 start-scripts {
   swanctl = /usr/local/sbin/swanctl -q

Place the swanctl configuration file in the following folder. /usr/local/etc/swanctl/conf.d/xxx.conf

Referenced site

strongSwan Installation Documentation

Recommended Posts

Install strongSwan 5.9.1 on Amazon Linux 2
Install tomcat 5.5 on Amazon Linux.
Install Homebrew on Amazon Linux 2
Install oracle java8 on amazon linux2
Install pyenv on EC2 (Amazon Linux)
[Note] Install Imagick on Amazon Linux2
I'll install Ruby on EC2 (Amazon Linux2) 2020
How to install Anisble on Amazon Linux 2
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Install Minecraft on Arch Linux
Install Linux on your Chromebox
Install the JDK on Linux
Use sshpass on Amazon linux2
Compile and install MySQL-python for python2.7 on amazon linux
[AWS EC2] How to install Maven on Amazon Linux 2
Try installing OpenAM on Amazon Linux
Install Arch Linux on DeskMini A300
How to install wkhtmltopdf (Amazon Linux2)
How to install VMware-Tools on Linux
[Note] Run Django on Amazon Linux 2
Run docker-compose on Amazon Linux2 on ARM64
Introduce Python 3.5.2 environment on Amazon Linux
Run cron on Amazon Linux (set on Linux)
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Install scipy on Linux without internet connection
How to install aws-session-manager-plugin on Manajro Linux
Use Numpy, Scipy, scikit-learn on Amazon Linux
How to update php on Amazon linux 2
Install and launch k3s on Manjaro Linux
Build an LNPP environment on Amazon Linux 2
Install and Configure TigerVNC server on Linux
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install packages on Alpine Linux
Dockerfile: Install Docker on your Linux server
Install Mecab on Linux (CentOS) with brew
How to install php7.4 on Linux (Ubuntu)
Install rJava on Linux in R3.6 environment.
Until you install Arch Linux on VMware
Linux "Install on / dev / sda" error resolution
A story I was addicted to trying to install LightFM on Amazon Linux
Install Python3 and Django on Amazon Linux (EC2) and run your web server
Install Anydesk Linux version on Chromebook [Result NG]
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
How to install Camunda Modeler on Manjaro Linux
Install mecab on Marvericks
Install Tensorflow on Mac
Daemonizing processes on Linux
Install TensorFlow on Ubuntu
Install python on WSL
Install Faiss on CentOS 7
Install pyenv on mac
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
jblas on Arch Linux
Install docker on Fedora31
Linux (WSL) on Windows
NAT router on Linux