# Install WireGuard Client on Desktop

## Description <a href="#prerequisites" id="prerequisites"></a>

The guide here provides steps to install WireGuard app on machine and to activate the tunnel. This app allows users to create an encrypted VPN for secure communication.

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

The prerequisites to install WireGuard on Machine:

1. Download WireGaurd Client [here](https://www.wireguard.com/install/).
2. Before proceeding with the installation, obtain the WireGuard conf file from a System Administrator.

## Procedure

The steps to set up a WireGuard client on an **windows machine** are:

1. After the successful installation, launch the WireGuard Application.
2. Click **Add Tunnel** and select the **wg.conf** file shared with you.
3. Click **Activate** to activate the WireGuard.

The steps to set up a WireGuard client on an **Ubuntu machine** are:

1. After successfully installing WireGuard, navigate to the directory `/etc/wireguard` using the terminal.
2. Next, create a file named `<name>.conf`, add the WireGuard configuration file to it, and save the file.<br>
3. **Activate** WireGuard using the commands below.

   ```
   sudo systemctl enable wg-quick@<name> 
   sudo systemctl start wg-quick@<name>
   sudo systemctl status wg-quick@<name>
   ```

> Ensure that the listening port is unique for each WireGuard configuration file when using multiple instances.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.openg2p.org/operations/deployment/scaling/base-infrastructure/wireguard-bastion/install-wireguard-client-on-machine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
