> For the complete documentation index, see [llms.txt](https://unplukz.gitbook.io/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unplukz.gitbook.io/welcome/hackthebox/optionals/connect-htb-vpn-using-openvpn.md).

# Connect HTB VPN using OpenVPN

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.

<figure><img src="/files/GtCqiII21XmDvRoo4PVn" alt=""><figcaption></figcaption></figure>

Next, select a VPN Server that offers low-latency connectivity based on your location, and then click the "DOWNLOAD VPN" button.

<figure><img src="/files/OQq0eVSHVdbspM7wYmmU" alt=""><figcaption></figcaption></figure>

You will receive the OVPN file with you HTB username in.

<figure><img src="/files/3cvwOq0dwS8J8japR0yV" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="/files/KDrp5S4FOmRpbp3PzrXm" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="/files/w4ganbWcNHMitM1cYgta" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="/files/GZwyQLIoNNteIfUE64vU" alt=""><figcaption></figcaption></figure>

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!
