How to connect Tryhackme labs to OpenVPN — Kali Linux

Nwosu Kingsley Chiejine
3 min readDec 11, 2023

--

Have you encountered any trouble trying to “start your machine” on tryhackme lab? Well, I was there and was a bit confused on what to do. Having completed Linux Fundamentals 1 & 2, excitedly, I went on to take Linux Fundamentals 3 but my machine just wouldn’t start.

I had to do some reading to come up with a solution I am going to be sharing. Quite simple and interesting! 😉 Let’s get to it.

  1. First get your IP address assigned to you on the lab. Just by clicking "start machine" and waiting for 59secs, the IP will be displayed. Copy & save it.

2. Click your profile icon at the top right of the screen and click access. This takes you to another page, "Access via OpenVPN"

As you can see, you aren’t connected, yet. And towards your left, you’d see a drop down of VPN servers & “Download my configuration file”
Change the VPN server option to “EU-Regular-1” (Atleast, this worked for me” 😃) and download. Your downloaded VPN will have your username with a .ovpn extension.

3. Now go to your Linux machine ( I used Kali Linux). Open a open a terminal and navigate to the path with your downloaded file is located.

First check if openvpn is running, enter;

sudo systemctl status openvpn

(If you do not see active, then it isn’t)

You can install it on your machine with;

sudo apt-get install openvpn

You can run/start it with;

sudo systemctl start openvpn

When you run the status check again, you should see the below.

4. After setting up the vpn, run;

sudo openvpn your_vpn.ovpn.

When you see “initialization sequence completed”, then you’re connected.

Go back to your tryhackme page and refresh, it should be connected now.

Finally, open a new terminal on your Linux machine and ssh to your server and that’s it! You’re in!

ssh tryhackme@IP

#cybersecurity #linux #tryhackme #tutorial #technology #learning

--

--

Nwosu Kingsley Chiejine
Nwosu Kingsley Chiejine

Written by Nwosu Kingsley Chiejine

Billing Support | Technical Engineer | Cybersecurity Enthusiast

No responses yet