This is lab number 5 in this series. If you have not already completed the previous lab, please start at Lab 4: Create an Kali VM for TryHackMe.
In this lab, you will use OpenVPN to connect your Kali VM to the TryHackMe VPN server.
Before you start setting up OpenVPN on your Kali VM, let’s structure our home directory.
You can find your home directory at “/home/username” or “~”. Either browse to that location or open Terminal and change directories cd to it.
First, make a new directory named “bin” in your home directory. You can either do this through the Window Manager or via Terminal by entering mkdir ~/bin.
Now let’s download our OpenVPN configuration file from TryHackMe.
- Login to TryHackMe.
- Click your profile picture.
- Click “Manage Account”.
- Click “VM and VPN Settings”.
- Scroll down to “OpenVPN (Advanced)”.
- Click “Download configuration file”.
- Move the configuration file to
~/bin. - Open Terminal.
- Use the following command to connect to the TryHackMe VPN.
sudo openvpn ~/bin/OpenVPNConfigurationFilename.ovpn
If you have problems connecting to the TryHackMe VPN, here are some troubleshooting resources that might be helpful.
https://tryhackme.com/room/openvpn https://help.tryhackme.com/en/collections/3664918-openvpn-guide
By connecting to the TryHackMe VPN, you can use your Kali VM to complete TryHackMe Rooms without needing to use their browser based attack box.
Ensure you always connect to the TryHackMe VPN before attempting to run any tools and that you only target authorized TryHackMe Room endpoints. Do not perform unauthorized scanning, attacking, exploitation, or other activities. You alone are responsible for your actions. If you have legal questions, consult a competent attorney licensed to practice law in the relevant jurisdiction.