Connect HTB VPN using OpenVPN
In this segment, I will provide instructions on connecting to HacktheBox via OpenVPN when not utilizing their Pwnbox but instead using your local machine.
Last updated
In this segment, I will provide instructions on connecting to HacktheBox via OpenVPN when not utilizing their Pwnbox but instead using your local machine.
Last updated
Initiate the process by clicking the "CONNECT TO HTB" button located in the upper-right corner. Choose your desired interaction option (Machines, Starting Point, Endgames), and then click on the OpenVPN button, represented by the green triangle as shown in the image below.
Next, select a VPN Server that offers low-latency connectivity based on your location, and then click the "DOWNLOAD VPN" button.
You will receive the OVPN file with you HTB username in.
In the following step, you can effortlessly copy this file and paste it onto your virtual attacking machine, such as Kali Linux in a Virtual Machine. I typically paste it on the Desktop for convenience.
Proceed by opening the terminal and navigating to the Desktop. Afterward, execute the command sudo openvpn [your_filename].ovpn
to start the process.
You can identify the connection status by looking at the red triangle in the image below. If it displays "Initialization Sequence Completed," it indicates that you are now connected to the HTB Virtual Private Network.
Remember to keep this terminal tab open if you plan to work on the HTB target machine. Open a new tab and use the ping
command to confirm your connectivity with the target.
Upon successful execution of the ping
command, you are now ready to proceed with the desired machine. Enjoy your practice in the world of hacking!