Ocserv Installation - Debian, Ubuntu

Author: Mauro Gaspari

Scope

This recipe provides step by step instructions on how to install ocserv repositories on Debian and Ubuntu operating systems.

Platforms used for testing

This Recipe was tested on the following platforms:

Assumptions

Requirements

Installation - Debian (testing or unstable)

  1. Check that Debian repositories are configured for either "testing" or "stretch". As previously mentioned, "unstable" or "sid" also works.

    cat /etc/apt/sources.list

  2. Update apt cache

    apt-get update

  3. Check if ocserv is available for install:

    apt-cache show ocserv

  4. Install ocserv. This will install ocserv and its dependencies, however radcli will not be automatically installed. Currently Debian/Ubuntu ocserv package does not support radius authentication.

    apt-get install ocserv

Installation - Ubuntu (required minimum is 16.04 LTS)

  1. Check that Ubuntu "universe" repository is enabled. Edit the file and uncomment repository if needed.

    cat /etc/apt/sources.list

  2. Update apt cache

    apt-get update

  3. Check if ocserv is available for install:

    apt-cache show ocserv

  4. Install ocserv. This will install ocserv and its dependencies, however radcli will not be automatically installed. Currently Debian/Ubuntu ocserv package does not support radius authentication.

    apt-get install ocserv

Final notes

This concludes the Ocserv Installation - Debian, Ubuntu recipe. At this point Openconnect server should be ready to be configured.