Openvpn for Tryhackme or HTB

VISCID
2 min readApr 14, 2024

--

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 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 which could be found online showing you a step-by-step guide of 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 login in HTB(or tryhackme) and download vpn connection through these:

Vpn connection in HTB Academy when doing a challenge
Vpn connection option available by clicking Connect to HTB and selecting the required option

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 you 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!

--

--

VISCID

I am a high school student who is deeply involved in Cybersecurity, OSINT and love CTFs.