LibrePortal/scripts/menu/tools/manage_wireguard.sh
librelad 875a60f90f LibrePortal v0.1.0 — initial release
A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys,
Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun
VPN routing, and a web dashboard to manage it all.

Free & open forever to self-host; optional paid hosted services fund it.
See PROMISE.md.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-21 20:37:54 +01:00

43 lines
736 B
Bash
Executable File

#!/bin/bash
wireguardManageMenu()
{
# Enable input
stty echo
while true; do
isHeader "Wireguard Manager"
echo "Built from: https://github.com/angristan/wireguard-install"
echo ""
isOption "1. Add a new user"
isOption "2. List all users"
isOption "3. Revoke existing user"
isOption "4. Uninstall WireGuard"
isOption "x. Exit"
echo ""
isQuestion "What is your choice: "
read -rp "" wireguard_menu_option
case "${wireguard_menu_option}" in
1)
wireguardNewClient
;;
2)
wireguardListClients
;;
3)
wireguardRevokeClient
;;
4)
wireguardUninstall
;;
x)
resetToMenu;
;;
*)
isNotice "Invalid choice. Please select a valid option."
;;
esac
done
}