Last active
July 10, 2023 04:59
-
-
Save felipsmartins/4ca3995f925f0a0c3edcc615906ec9b3 to your computer and use it in GitHub Desktop.
openvpn3-debian12-bookworm-compilation.sh
This file contains 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
#!/usr/bin/sh | |
sudo apt-get install 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 | |
git clone git://github.com/OpenVPN/openvpn3-linux | |
cd openvpn3-linux | |
./bootstrap.sh | |
sudo groupadd -r openvpn | |
sudo useradd -r -s /sbin/nologin -g openvpn openvpn | |
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
make | |
sudo make install | |
sudo openvpn3-admin init-config --write-configs | |
sudo systemctl reload dbus | |
# testing | |
OPENVPN_CONFIG_PATH=/path/to/file-profile.ovpn | |
/usr/bin/openvpn3 session-start --config $OPENVPN_CONFIG_PATH_BR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment