How To Install ocserv on Fedora 36

In this tutorial we learn how to install ocserv in Fedora 36. ocserv is OpenConnect SSL VPN server

Introduction

In this tutorial we learn how to install ocserv on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocserv.

Install ocserv on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ocserv

Install ocserv on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ocserv

How To Uninstall ocserv on Fedora 36

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

sudo dnf remove ocserv

ocserv Package Contents on Fedora 36

/etc/ocserv
/etc/ocserv/ocserv.conf
/etc/pam.d/ocserv
/usr/bin/occtl
/usr/bin/ocpasswd
/usr/bin/ocserv-fw
/usr/bin/ocserv-script
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/3f6d5a02a6a449f11b9f4a8b097b743b8159d4
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/714b4f49a5eca4d55f070a89c719e830991074
/usr/lib/.build-id/90
/usr/lib/.build-id/90/40ad1cf5c80f1b3aa62b9ce6af8826aab55647
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/ac6c2cb6cc5a0ea91b778c94b742be5fc57b0b
/usr/lib/systemd/system/ocserv.service
/usr/sbin/ocserv
/usr/sbin/ocserv-genkey
/usr/sbin/ocserv-worker
/usr/share/doc/ocserv
/usr/share/doc/ocserv/AUTHORS
/usr/share/doc/ocserv/BSD-MIT
/usr/share/doc/ocserv/CC0
/usr/share/doc/ocserv/COPYING
/usr/share/doc/ocserv/ChangeLog
/usr/share/doc/ocserv/LGPL-2.1
/usr/share/doc/ocserv/LICENSE
/usr/share/doc/ocserv/NEWS
/usr/share/doc/ocserv/PACKAGE-LICENSING
/usr/share/doc/ocserv/README.md
/usr/share/man/man8/occtl.8.gz
/usr/share/man/man8/ocpasswd.8.gz
/usr/share/man/man8/ocserv.8.gz
/var/lib/ocserv
/var/lib/ocserv/profile.xml

References

Summary

In this tutorial we learn how to install ocserv on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).