wireguard-ui icon indicating copy to clipboard operation
wireguard-ui copied to clipboard

manage multiple configs / servers

Open maaathieu-x opened this issue 2 years ago • 2 comments

Hi,

In my typical deployments, I use two different configs (wireguard interface, private key, user db, listening port) on one physical server, in order order to separate different groups of users (regular user vs admin for example). It would be great if wireguard-ui could manage this scenario. I can't use launch a second process because the the listening port and db directory are hardcoded.

Mathieu

maaathieu-x avatar Mar 30 '22 09:03 maaathieu-x

Your can use systemd unit and WorkingDirectory for separate two instance wireguard-ui Change -bind-address for port and WorkingDirectory for dir in my example Two different units for two instance

[Unit]
Description=Wireguard UI
After=network.target

[Service]
Type=simple

# Environment="SENDGRID_API_KEY=YOUR_API_KEY_HERE"
# Environment="EMAIL_FROM_ADDRESS=YOUR_EMAIL_HERE"
# Environment="EMAIL_FROM_NAME=YOUR_NAME_HERE"

ExecStart=/usr/local/bin/wireguard-ui -bind-address 127.0.0.1:5000
WorkingDirectory=/etc/wireguard/ui

Restart=on-failure
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=wireguard-ui

[Install]
WantedBy=multi-user.target

Nill-R avatar Apr 13 '22 20:04 Nill-R

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 13 '22 04:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 03:08 stale[bot]

Having two networks/configs is quite common, so it would be nice to see this feature in the future. Currently, the UI is already displaying all WireGuard interface on the status page.

lightonflux avatar Jan 06 '23 04:01 lightonflux