Last active
April 10, 2023 20:42
-
-
Save tkisason/6780a3030a935a5a7e67cbdf302458a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
apt update | |
apt install -y libssl-dev libssl1.1 python3-pip build-essential git \ | |
pkg-config autoconf autoconf-archive libglib2.0-dev \ | |
libjsoncpp-dev uuid-dev liblz4-dev libcap-ng-dev \ | |
libxml2-utils python3-minimal python3-dbus \ | |
python3-docutils python3-jinja2 libxml2-utils \ | |
libtinyxml2-dev policykit-1 libsystemd-dev \ | |
python3-systemd libnl-3-dev libnl-genl-3-dev \ | |
protobuf-compiler libprotobuf-dev | |
groupadd -r openvpn | |
useradd -r -s /sbin/nologin -g openvpn openvpn | |
git clone https://github.com/OpenVPN/openvpn3-linux.git | |
cd openvpn3-linux | |
./bootstrap.sh | |
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
make | |
make install | |
chown -R openvpn:openvpn /var/lib/openvpn3 | |
openvpn3-admin init-config --write-configs | |
# Consider linking packages to fix openvpn3's expectance of where to find certain files | |
# ln -sf /usr/lib/python3.11/site-packages/openvpn3 /usr/lib/python3.11/openvpn3 | |
# Reboot the machine or execute (keep in mind that the session will terminate): | |
# systemctl restart dbus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment