Skip to content

Instantly share code, notes, and snippets.

@stuartw1
Last active November 4, 2025 11:41
Show Gist options
  • Select an option

  • Save stuartw1/25d6ecf5b1d8f65e09010e93d5510e80 to your computer and use it in GitHub Desktop.

Select an option

Save stuartw1/25d6ecf5b1d8f65e09010e93d5510e80 to your computer and use it in GitHub Desktop.
install openvpn3 and dependencies on Kali Linux
#!/bin/bash
# The following commands should install openvpn3 successfully on Kali Linux as of 2023-10-11
# Please check libssl1.1 version is newest at https://packages.debian.org/bullseye/amd64/libssl1.1
# PM me if broken and I will update
# Thanks to the following for bug reports / additions
# asingh-lp, Pyr0technicien
# update packages
sudo apt update
sudo apt full-upgrade
# install secure apt transport over https
sudo apt install apt-transport-https
# add sources.list, get the repo key for openvpn3 and install key
sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-bullseye.list
wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
sudo apt-key add openvpn-repo-pkg-key.pub
# get Debian Bullseye dependencies which are not in Kali from Debian repos
wget http://ftp.us.debian.org/debian/pool/main/libj/libjsoncpp/libjsoncpp24_1.9.4-4_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/t/tinyxml2/libtinyxml2-8_8.0.0+dfsg-2_amd64.deb
#Check this is the newest available libssl1.1 when you install - updated 2023-10-11
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb
# install dependencies
sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_amd64.deb libjsoncpp24_1.9.4-4_amd64.deb libssl1.1_1.1.1w-0+deb11u1_amd64.deb
# update packagelist and install openvpn3
sudo apt update
sudo apt install openvpn3
@stuartw1
Copy link
Copy Markdown
Author

stuartw1 commented Jun 7, 2023 via email

@stuartw1
Copy link
Copy Markdown
Author

stuartw1 commented Jun 8, 2023

Updated - thanks again

@MartinN3
Copy link
Copy Markdown

Thanks guys! I have made fork for arm64 just in case anyone want's to run it on for example raspberry (64bit only!).

@Hackerobi
Copy link
Copy Markdown

Life safer B!!! Thanks :)

@baptx
Copy link
Copy Markdown

baptx commented Jun 14, 2025

Thanks for sharing the workaround.
The packages links are too old to work now.
You can download the latest packages here:
https://packages.debian.org/bookworm/libjsoncpp25
https://packages.debian.org/bookworm/libtinyxml2-9
I did not need libssl1.1.

@bloodstiller
Copy link
Copy Markdown

You can install way easier now just by doing this:

sudo apt install apt-transport-https curl

mkdir -p /etc/apt/keyrings

curl -sSfL https://packages.openvpn.net/packages-repo.gpg >/etc/apt/keyrings/openvpn.asc

echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian testing main" >>/etc/apt/sources.list.d/openvpn3.list
# Kali rolling is based on debian testing so you can just add that repo

sudo apt update
sudo apt install openvpn3-client #this will also install the other packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment