Quick tool to setup wireguard-ui
MIT License
This scripts helps to setup the wireguard-ui project into your machine. It enables:
Open the file config.env.sample
and edit the parameteres in the file according with your setup and save as config.env
.
export WIREGUARD_UI_VERSION=0.4.0
export WIREGUARD_UI_PLATFORM=linux-amd64
export WG_INTERFACE=wg0
export WG_DIRECTORY=/opt/wireguard-ui
export WG_ARGS=''
The latest WIREGUARD_UI_VERSION
can be found at https://github.com/ngoduykhanh/wireguard-ui/releases
Check the WIREGUARD_UI_PLATFORM
. Available platforms are:
For the WG_ARGS the available arguments are:
Usage of /opt/wireguard-ui/wireguard-ui:
-bind-address string
Address:Port to which the app will be bound. (default "0.0.0.0:5000")
-disable-login
Disable authentication on the app. This is potentially dangerous.
-email-from string
'From' email address.
-email-from-name string
'From' email name. (default "WireGuard UI")
-sendgrid-api-key string
Your sendgrid api key.
-session-secret string
The key used to encrypt session cookies.
-smtp-auth-type string
SMTP Auth Type : Plain or None. (default "None")
-smtp-hostname string
SMTP Hostname (default "127.0.0.1")
-smtp-no-tls-check
Disable TLS verification for SMTP. This is potentially dangerous.
-smtp-password string
SMTP Password
-smtp-port int
SMTP Port (default 25)
-smtp-username string
SMTP Password
sudo ./wireguard-ui-setup.sh
Once finished, connect to the admin interface, configure the interface and apply. After apply the new configuration, restart the computer