wireguard-ui
wireguard-ui copied to clipboard
manage multiple configs / servers
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
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
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.
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.
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.