---
title: How to Use Vultr's WireGuard Marketplace Application
url: https://docs.vultr.com/how-to-use-vultr-s-wireguard-marketplace-application
description: Deploy the Vultr WireGuard Marketplace Application, generate client keys and peer configurations, and connect Windows, macOS, and Linux clients to the VPN.
publish_date: 2026-11-26T14:55:14.371908Z
last_updated: 2026-11-26T15:06:33.652220Z
author: Dmitry Narizhnykhal
header_image: https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2684/7d0e1650-41ee-48ec-b5fa-265e5651c6f1.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

[WireGuard](https://www.vultr.com/marketplace/apps/wireguard/) is an open-source virtual private networking (VPN) application. Vultr's WireGuard Marketplace Application deploys a preconfigured WireGuard server that supports multiple VPN clients through a single instance. You can use the WireGuard VPN server to connect multiple client devices and reach the internet through the server's public IP without exposing any local addresses.

This guide explains how to deploy Vultr's WireGuard Marketplace Application. It covers connecting clients from Windows, macOS, and Linux, and verifying connectivity to the VPN server.

## WireGuard Features

WireGuard offers the following virtual private networking (VPN) features, enabling you to set up secure and reliable connections between devices.

* Encrypts traffic with ChaCha20, authenticates it with Poly1305, and exchanges keys using Curve25519.
* Runs a codebase of roughly 4,000 lines, compared to over 100,000 lines in typical kernel IPsec implementations.
* Supports multiple client devices connecting to the same server simultaneously.
* Supports multiple VPN interfaces for separate client groups or networks.

## Deploy the WireGuard Marketplace Application

Follow the steps below to deploy Vultr's WireGuard Marketplace Application.

1. Log in to the [Vultr Console](https://console.vultr.com).
1. Click **Compute** on the main navigation menu and click **Create Instance +**.
1. Select your desired instance plan, such as Dedicated CPU, and specify the compute specifications, such as 2 vCPUs and 4 GB RAM.
1. Click **Configure Software** to specify the system image.
1. Click **Marketplace App** within the Image Selection and Configuration section.
1. Enter `WireGuard` as the search term and select it from the search results.
1. Specify the server hostname and additional features.
1. Click **Deploy** and wait for the installation process to complete.
1. Open the instance's management page and verify the WireGuard application instructions including the endpoint, port, and default subnet information for connecting to the VPN server.

    The application also preconfigures one client peer at the `10.1.0.2` address and hosts its client configuration at `http://SERVER_IP/wireguard_conf/wg0.conf`, protected by HTTP basic authentication. The following section creates an additional client at `10.1.0.3` so the two configurations do not conflict.

## Generate WireGuard Client Configurations

Each WireGuard client needs its own keypair and a matching `[Peer]` entry on the server. Each side's `[Peer]` entry contains the public key of the device on the other side of the tunnel.

1. Log in to your WireGuard server using SSH.

    ```console
    $ ssh root@SERVER_IP
    ```

    Replace `SERVER_IP` with your server's public IP address.

1. Generate a new WireGuard client keypair using the `wg` command.

    ```console
    # wg genkey | tee client_private.key | wg pubkey > client_public.key
    ```

1. Print the generated `client_private.key` and `client_public.key` files.

    ```console
    # cat client_private.key client_public.key
    ```

    Copy the generated keys in your output to use them in your client configurations.

    ```
    EjR3L9pQ8xZ2vF1nK6mH7jW5dC0bN4sX9tY1rP2mL3g=
    7qK2mN9pL4xZ1vF8nK3mH5jW6dC0bN2sX9tY1rP4mL7=
    ```

1. List files in the `/etc/wireguard` directory and verify the available configurations in your output.

    ```console
    # ls /etc/wireguard
    ```

    Output:

    ```
    wg0.conf
    ```

    Based on the above output, `wg0.conf` is the available WireGuard interface configuration.

1. Open the `wg0.conf` file using a text editor such as `nano`.

    ```console
    # nano /etc/wireguard/wg0.conf
    ```

1. Add a new `[Peer]` block with your WireGuard client's public key at the end of the file.

    ```ini
    [Peer]
    PublicKey = CLIENT_PUBLIC_KEY
    AllowedIPs = 10.1.0.3/32
    ```

    Replace `CLIENT_PUBLIC_KEY` with the public key you generated earlier.

    Save and close the `wg0.conf` file.

1. Display the server's public key.

    ```console
    # wg show wg0 public-key
    ```

    The output is the server's public key. Copy it to use in the next step.

1. Create a new `client1.conf` file in your working directory to create a transferable client configuration.

    ```console
    # nano client1.conf
    ```

1. Add the following contents to the `client1.conf` file.

    ```ini
    [Interface]
    PrivateKey = CLIENT_PRIVATE_KEY
    Address = 10.1.0.3/32
    DNS = 1.1.1.1, 8.8.8.8

    [Peer]
    PublicKey = SERVER_PUBLIC_KEY
    Endpoint = SERVER_IP:51820
    AllowedIPs = 0.0.0.0/0
    PersistentKeepalive = 25
    ```

    Replace:

    * `CLIENT_PRIVATE_KEY` with the private key from `client_private.key`.
    * `SERVER_PUBLIC_KEY` with the value from the previous step.
    * `SERVER_IP` with your server's public IP address.

    Save and close the `client1.conf` file.

    The above configuration specifies the WireGuard client information used to establish connections to the VPN server using its endpoint. The `AllowedIPs = 0.0.0.0/0` value routes all client traffic through the VPN server.

1. Restart the WireGuard service to apply the configuration changes.

    ```console
    # systemctl restart wg-quick@wg0
    ```

1. Verify that the new peer appears in the interface's configuration.

    ```console
    # wg show wg0
    ```

    The output lists the new peer's public key. A `latest handshake` entry appears only after a client connects, so it may be absent until then.

## Connect WireGuard Clients to the VPN Server

WireGuard supports multiple client applications for connection to a VPN server. You can connect using the official application for your mobile device, desktop, or a Linux-based system. Before connecting a client, verify that its public key appears as a peer in the `wg show wg0` output on the server.

1. Print the contents of the `client1.conf` file you generated earlier.

    ```console
    # cat client1.conf
    ```

    Copy the output.

1. On your client device, create a new file named `client1.conf` and paste the copied contents into it.

    Repeat this process for each client device you want to connect to the VPN server.

### Connect Desktop WireGuard Clients

The official WireGuard application provides the same tunnel-import workflow for Windows and macOS.

1. Visit the official [WireGuard Installation page](https://www.wireguard.com/install/).
1. Download the latest installer for your desktop operating system, such as the Windows installer.
1. Run the installer to install WireGuard.
1. Open WireGuard from your applications menu.
1. Click **Import tunnel(s) from file** and select the `client1.conf` file you created earlier.

    ![Import WireGuard Tunnels](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2684/c07ef0d5-ceb8-4bba-86f6-abee7abeb387.png)

1. Click **Activate** to connect to your VPN server.
1. Verify that the VPN connection is successful and monitor the data transfer rates.

    ![Verify WireGuard VPN Connection](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2684/6a909d7c-5588-43db-91ad-85f695a25772.png)

### Connect Linux WireGuard Clients

Linux systems use the `wg-quick` command-line tool instead of a GUI application.

> [!WARNING]
> The client configuration routes all traffic through the VPN server. If you connect to the Linux client over SSH, activating the tunnel disconnects your SSH session. Run these steps from a local terminal or a console session on the client.

1. Update the package index on your Linux system.

    ```console
    $ sudo apt update
    ```

1. Install WireGuard.

    ```console
    $ sudo apt install wireguard -y
    ```

1. Move the `client1.conf` file you created earlier to the `/etc/wireguard` directory.

    ```console
    $ sudo mv client1.conf /etc/wireguard
    ```

1. Activate the configuration to establish a tunnel connection to the VPN server.

    ```console
    $ sudo wg-quick up client1
    ```

1. Verify that the client established a handshake with the server.

    ```console
    $ sudo wg show client1
    ```

    The output includes a `latest handshake` entry after the connection succeeds.

1. Enable the WireGuard client interface to run at boot.

    ```console
    $ sudo systemctl enable wg-quick@client1
    ```

1. Test the connection to the VPN server's tunnel address.

    ```console
    $ ping -c 3 10.1.0.1
    ```

    The output reports `0% packet loss`, which confirms that the client reaches the server through the tunnel.

1. Verify that the client's internet traffic leaves through the VPN server.

    ```console
    $ curl -4 ifconfig.me
    ```

    The output displays your VPN server's public IP address.

## Conclusion

You have deployed Vultr's WireGuard Marketplace Application, created client configurations, and connected clients to the VPN server. Your client devices now reach the internet through the server's single public IP without exposing local addresses. For more information, refer to the [official WireGuard documentation](https://www.wireguard.com/quickstart/).
