How To Install ocserv on CentOS 7

In this tutorial we learn how to install ocserv on CentOS 7. ocserv is OpenConnect SSL VPN server

Introduction

In this tutorial we learn how to install ocserv on CentOS 7.

What is ocserv

OpenConnect server (ocserv) is an SSL VPN server. Its purpose is to be a secure, small, fast and configurable VPN server. It implements the OpenConnect SSL VPN protocol, and has also (currently experimental) compatibility with clients using the AnyConnect SSL VPN protocol. The OpenConnect VPN protocol uses the standard IETF security protocols such as TLS 1.2, and Datagram TLS to provide the secure VPN service.

We can use yum or dnf to install ocserv on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ocserv.

Install ocserv on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ocserv using yum by running the following command:

sudo yum -y install ocserv

Install ocserv on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ocserv using dnf by running the following command:

sudo dnf -y install ocserv

How To Uninstall ocserv on CentOS 7

To uninstall only the ocserv package we can use the following command:

sudo dnf remove ocserv

References

Summary

In this tutorial we learn how to install ocserv on CentOS 7 using yum and dnf.