ipsec command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ipsec: command not found
or when using sudo you get the following error message
sudo: ipsec: command not found
Solutions to ipsec: command not found
How To Fix ipsec: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ipsec is provided by libreswan package.
libreswan is:
Libreswan is an IPsec implementation for Linux. It has support for most of the extensions (RFC + IETF drafts) related to IPsec, including IKEv2, X.509 Digital Certificates, NAT Traversal, and many others.
Libreswan has been forked from Openswan 2.6.38, which was forked from FreeS/WAN 1.99.
The Libreswan IKE daemon is named pluto. It was inherited from the FreeS/WAN project, but provides improved X.509 certificate support and other features.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libreswan
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libreswan.
sudo apt -y install libreswan
Or if you have aptitude installed you can use the following command.
sudo aptitude install libreswan
Summary
In this tutorial we learn how to fix ipsec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.