-
-
Notifications
You must be signed in to change notification settings - Fork 44
Installation
This document provides detailed instructions on how to install openvpn-auth-oauth2.
We provide DEB/RPM packages for Linux distributions. You can download the latest package from our releases page.
openvpn-auth-oauth2 provides an APT repository for Debian based distributions. You can add the repository to your system and install the package using the following commands:
curl -L https://raw.githubusercontent.com/jkroepke/openvpn-auth-oauth2/refs/heads/main/packaging/apt/openvpn-auth-oauth2.sources | sudo tee /etc/apt/sources.list.d/openvpn-auth-oauth2.sources
sudo apt update
sudo apt install openvpn-auth-oauth2Note: The apt repository exclusively locates to the latest release.
To pin a specific version, use https://github.com/jkroepke/openvpn-auth-oauth2/releases/download/vX.Y.Z as URIs in the sources file.
Alternatively, you can install the DEB package manually:
- Download the DEB package from the releases page.
- Open a terminal.
- Navigate to the directory where you downloaded the package.
- Install the package using the following command:
sudo dpkg -i <package_file>.debReplace <package_file> with the name of the downloaded file.
- Download the RPM package from the releases page.
- Open a terminal.
- Navigate to the directory where you downloaded the package.
- Install the package using the following command:
sudo yum localinstall <package_file>.rpmReplace <package_file> with the name of the downloaded file.
If you prefer to build the binary yourself, follow these steps:
-
Ensure you have Go and Make installed on your system.
-
Download the source code from our releases page.
-
Open a terminal.
-
Navigate to the directory where you downloaded the source code.
-
Build the binary using the following command:
make build
This will create a binary file named openvpn-auth-oauth2.
-
Move the
openvpn-auth-oauth2binary to /usr/bin/ using the following command:sudo mv openvpn-auth-oauth2 /usr/bin/
-
Verify the installation by checking the version:
openvpn-auth-oauth2 --version
Continue with the Configuration Guide to set up your provider details.
This wiki is synced with the docs folder from the code repository! To improve the wiki, create a pull request against the code repository with the suggested changes.