The simplest and fastest way to install WireGuard UI is to use the Portainer template provided by our team. This method minimizes manual configuration and allows you to deploy a stable, ready-to-use setup in just a few minutes.

Requirements

  • A VPS with Portainer installed using the Unihost script
  • A deployed NPM (Nginx Proxy Manager)

After Portainer is installed, log in with your credentials.

Installing WireGuard UI with Portainer - Image 1

Installing WireGuard UI with Portainer - Image 2

Installing WireGuard UI with Portainer - Image 3

Inside Portainer, go to the local section, select WireGuard, and fill in the fields:

Installing WireGuard UI with Portainer - Image 4

Installing WireGuard UI with Portainer - Image 5

name — the name of the stack or container, for example wireguard

Public Host/IP — the domain that will be used through NPM. If you don’t have a domain, you can specify the server’s IP address (additional configuration will be described below)

Web UI Admin Password — the password for accessing the WireGuard interface

Now go to NPM and add a proxy for WireGuard.
In the Domain Names field, you can specify the server’s IP address (if you don’t have a domain).

Installing WireGuard UI with Portainer - Image 6

In this case, an error will appear:

“You can’t log in with an insecure connection. Use HTTPS.”

Installing WireGuard UI with Portainer - Image 7

If you have a domain, specify it, link it to WireGuard, and issue an SSL certificate.

If you don’t have a domain, you can enable insecure mode by changing the INSECURE parameter from false to true. Keep in mind that this is an insecure method and is not recommended for regular use.

How to do this:
Go back to Portainer:
Stacks → select your wireguard stack → Editor
Find the INSECURE line and change the value from false to true.

Installing WireGuard UI with Portainer - Image 8

Installing WireGuard UI with Portainer - Image 9

Installing WireGuard UI with Portainer - Image 10

After changing the parameter, click Update the stack. The error will disappear, and you will be able to log in to the WireGuard panel.

Installing WireGuard UI with Portainer - Image 11

Use the credentials you specified when deploying the stack to connect to WireGuard.

Installing WireGuard UI with Portainer - Image 12

Now proceed to creating a configuration for the VPN.
Click New Client and fill in the fields.

Installing WireGuard UI with Portainer - Image 13

name — the username for the profile, you can specify any value

Expire Date — the expiration date of the connection. You can set an end date or leave this field empty if no restriction is required

Installing WireGuard UI with Portainer - Image 14

We have created a new client, and now you can download the configuration file for your PC to connect to the VPN.

Installing WireGuard UI with Portainer - Image 15

(You can also use a QR code, but this step is omitted in this guide.)
After downloading the file, you need to add the configuration to your VPN connection and start it.

Linux/Ubuntu 24.04

Installing WireGuard UI with Portainer - Image 16

Open the top panel and select VPN Settings.

Installing WireGuard UI with Portainer - Image 17

Click + and select Import from file.

Installing WireGuard UI with Portainer - Image 18

After adding the profile, you will see the new VPN connection created in WireGuard.

Installing WireGuard UI with Portainer - Image 19

WireGuard Settings

Installing WireGuard UI with Portainer - Image 20

Windows

Download and install the WireGuard application from the official website:

https://www.wireguard.com/install/

After installation, import your configuration file.

Installing WireGuard UI with Portainer - Image 21

After that, you will be able to fully use the VPN.

Conclusion

Using the ready-made Portainer template saves time and reduces the chance of errors. As a result, you get a fully functional VPN out of the box with minimal setup effort.