Openvpn for Tryhackme or HTB
I have had a lot of trouble when using openvpn but I managed to figure out the reason. This was because I was not using a virtual machine…
I have had a lot of trouble when using openvpn but I managed to figure out the reason. This was because I was not using a virtual machine! I will be showing you the step-by-step method of using openvpn to access the network of Tryhackme or HTB so that you are able to do the challenges/boxes in the platforms.
We are supposed to connect through openvpn. For this, we should use a virtual machine, preferably Kali Linux. This is due to the fact that Kali Linux already has openvpn installed.
Note: There are many videos that can be found online showing you a step-by-step guide to downloading and running a virtual machine.
Also, if required, Openvpn could be installed through these commands depending on the OS:
apt install openvpn
brew install openvpn
In the virtual machine, you should log in to HTB(or tryhackme) and download a VPN connection through these:
The same can be done in Tryhackme through this link: https://tryhackme.com/r/access.
Note: This is all done in the virtual machine
The VPN connection can be of various locations such as IN, EU, or US. You should select the one which suits your purpose the most.
After downloading, go to the Command line and type:
sudo openvpn academy-regular.ovpn
Where academy-regular.ovpn is the VPN connection file downloaded from HTB Academy. The file will be different for Tryhackme or HTB labs.
Doing so would open a connection to Tryhackme or HTB and allow you to do the challenges.
Hope this helps!