Skip to content

Instantly share code, notes, and snippets.

@MartinN3
Forked from stuartw1/install-openvpn3-kali.sh
Last active October 11, 2023 11:57
Show Gist options
  • Select an option

  • Save MartinN3/d513505687f5fe999caaab2ac3043357 to your computer and use it in GitHub Desktop.

Select an option

Save MartinN3/d513505687f5fe999caaab2ac3043357 to your computer and use it in GitHub Desktop.

Revisions

  1. MartinN3 revised this gist Oct 11, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install-openvpn3-kali.sh
    Original file line number Diff line number Diff line change
    @@ -22,10 +22,10 @@ sudo apt-key add openvpn-repo-pkg-key.pub
    wget http://ftp.us.debian.org/debian/pool/main/libj/libjsoncpp/libjsoncpp24_1.9.4-4_arm64.deb
    wget http://ftp.us.debian.org/debian/pool/main/t/tinyxml2/libtinyxml2-8_8.0.0+dfsg-2_arm64.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
    wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_arm64.deb

    # install dependencies
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_arm64.deb libjsoncpp24_1.9.4-4_arm64.deb libssl1.1_1.1.1w-0+deb11u1_amd64.deb
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_arm64.deb libjsoncpp24_1.9.4-4_arm64.deb libssl1.1_1.1.1w-0+deb11u1_arm64.deb

    # update packagelist and install openvpn3
    sudo apt update
  2. MartinN3 revised this gist Oct 11, 2023. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions install-openvpn3-kali.sh
    Original file line number Diff line number Diff line change
    @@ -21,13 +21,11 @@ sudo apt-key add openvpn-repo-pkg-key.pub
    # get Debian Bullseye ARM64 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_arm64.deb
    wget http://ftp.us.debian.org/debian/pool/main/t/tinyxml2/libtinyxml2-8_8.0.0+dfsg-2_arm64.deb
    # wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_arm64.deb

    # this archive is incredibly slow
    wget http://snapshot.debian.org/archive/debian/20220507T034236Z/pool/main/o/openssl/libssl1.1_1.1.1o-1_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_arm64.deb libjsoncpp24_1.9.4-4_arm64.deb libssl1.1_1.1.1o-1_arm64.deb
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_arm64.deb libjsoncpp24_1.9.4-4_arm64.deb libssl1.1_1.1.1w-0+deb11u1_amd64.deb

    # update packagelist and install openvpn3
    sudo apt update
  3. MartinN3 revised this gist Jul 22, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install-openvpn3-kali.sh
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,8 @@ sudo apt-key add openvpn-repo-pkg-key.pub
    wget http://ftp.us.debian.org/debian/pool/main/libj/libjsoncpp/libjsoncpp24_1.9.4-4_arm64.deb
    wget http://ftp.us.debian.org/debian/pool/main/t/tinyxml2/libtinyxml2-8_8.0.0+dfsg-2_arm64.deb
    # wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_arm64.deb

    # this archive is incredibly slow
    wget http://snapshot.debian.org/archive/debian/20220507T034236Z/pool/main/o/openssl/libssl1.1_1.1.1o-1_amd64.deb

    # install dependencies
  4. MartinN3 revised this gist Jul 22, 2023. No changes.
  5. MartinN3 revised this gist Jul 22, 2023. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions install-openvpn3-kali.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,8 @@

    # update packages
    sudo apt update
    sudo apt full-upgrade
    # too slow for our usecase of fast installation
    # sudo apt full-upgrade

    # install secure apt transport over https
    sudo apt install apt-transport-https
    @@ -17,13 +18,14 @@ sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/
    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
    wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_amd64.deb
    # get Debian Bullseye ARM64 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_arm64.deb
    wget http://ftp.us.debian.org/debian/pool/main/t/tinyxml2/libtinyxml2-8_8.0.0+dfsg-2_arm64.deb
    # wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_arm64.deb
    wget http://snapshot.debian.org/archive/debian/20220507T034236Z/pool/main/o/openssl/libssl1.1_1.1.1o-1_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.1o-1_amd64.deb
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_arm64.deb libjsoncpp24_1.9.4-4_arm64.deb libssl1.1_1.1.1o-1_arm64.deb

    # update packagelist and install openvpn3
    sudo apt update
  6. @stuartw1 stuartw1 revised this gist Jun 8, 2023. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion install-openvpn3-kali.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,9 @@
    # The following commands should install openvpn3 successfully on Kali Linux as of 2023-04-17
    # 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
    @@ -17,9 +20,10 @@ 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
    wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1n-0+deb11u4_amd64.deb

    # install dependencies
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_amd64.deb libjsoncpp24_1.9.4-4_amd64.deb
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_amd64.deb libjsoncpp24_1.9.4-4_amd64.deb libssl1.1_1.1.1o-1_amd64.deb

    # update packagelist and install openvpn3
    sudo apt update
  7. @stuartw1 stuartw1 created this gist Apr 17, 2023.
    26 changes: 26 additions & 0 deletions install-openvpn3-kali.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #!/bin/bash
    # The following commands should install openvpn3 successfully on Kali Linux as of 2023-04-17
    # PM me if broken and I will update

    # 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

    # install dependencies
    sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_amd64.deb libjsoncpp24_1.9.4-4_amd64.deb

    # update packagelist and install openvpn3
    sudo apt update
    sudo apt install openvpn3