Skip to content

WireGuard. Managing the module

This article continues WireGuard quick start. If you haven't installed the module and created the first user yet, start there. Here we cover operations on the module itself: starting and stopping the service, updating, reinstalling, and uninstalling. Managing VPN users lives in a separate article — WireGuard. Managing users.

Page header and actions menu

The page header exposes the core module actions — start, stop, and restart the service. The service state is shown by an indicator and a chip with the WireGuard version. The three-dot menu next to them groups the rest: open logs, run an update, reinstall, or uninstall the module.

WireGuard module page header: state indicator, WireGuard chip, start/stop/restart buttons and the actions menuExpanded WireGuard actions menu with Logs, Update WireGuard, Reinstall WireGuard, and Uninstall WireGuard items

Managing the service

  • Start — brings the WireGuard service up from a stopped state.
  • Stop — shuts the service down. All active VPN connections drop, and new ones can't be established.
  • Restart — stops the service and immediately starts it again. Open sessions are reset.

The server picks up changes to the user list on the fly, without restarting the service: add, disable, or delete — the new configuration takes effect right away. However, if DNS server or persistent keepalive changed in a user's settings, the .conf file on the device needs to be re-imported — details in WireGuard. Managing users.

⚠️ Stopping the service drops all VPN connections

While the service is off, no user can connect. Schedule stops and restarts for a maintenance window, or warn users in advance.

While the module is being updated, reinstalled, or uninstalled, the service controls and the actions menu are temporarily unavailable.

Module logs

In the actions menu pick Logs — the lifecycle log opens: install, update, reinstall, uninstall. Each entry shows a status and the full execution output. Helpful when an action ends in error and you need to understand why.

Server settings

WireGuard has no separate server settings page: the server parameters (interface private key, tunnel addressing, peer set) are picked by the BeAdmin panel itself at install time and kept under the hood. The server accepts incoming connections over UDP on port 51820 — the standard WireGuard port, fixed in the panel and not configurable. If that port is taken by another service on the host, free it before installing the module.

ℹ️ If the VPN is blocked by port

The WireGuard protocol is recognizable to DPI filters regardless of port, so switching the UDP port won't help against active blocking. In networks with heavy censorship, use Amnezia (AmneziaWG with obfuscation) or Xray.

Updating the module

In the actions menu pick Update WireGuard. The panel checks whether a newer WireGuard version is in the repository, installs it over the current one, and restarts the service. The user list and their keys are preserved — no need to re-import .conf files on devices.

There's no confirmation prompt — the action runs right away. While the update is in progress, the service controls and menu items are unavailable; the current module version is visible on the WireGuard chip in the header. If the latest version is already installed, the update doesn't run — the panel will say so.

Reinstalling the module

In the actions menu pick Reinstall WireGuard. The panel asks for confirmation in the Confirm WireGuard reinstall dialog — click Confirm. The same WireGuard version is deployed over the current one, and the service restarts. The user list, their keys, and the generated .conf files are preserved — no need to re-import settings on devices.

Use reinstall if the module is unstable and you want to run the install over again without losing users. Unlike uninstall, reinstall doesn't wipe users and their keys — .conf files already issued keep working without reconnecting or re-importing.

Reinstall doesn't change the connection parameters — the module comes up on the same UDP port 51820 with the same interface keys. WireGuard installs with a single button and no parameter dialog, so there's nothing to pick before reinstalling.

If clients stop connecting after a reinstall, in the expanded user row download the .conf file again or regenerate the QR code. If errors persist, the last resort is to fully uninstall the module and install it again.

Uninstalling the module

In the actions menu pick Uninstall WireGuard. The panel asks for confirmation in the Confirm WireGuard module uninstall dialog: along with the module, all user connection settings are removed; after a fresh install the module starts from scratch.

WireGuard module uninstall confirmation dialog with a warning and the Confirm button

‼️ Uninstalling the module wipes all VPN users

Uninstall is irreversible: the module disappears together with all WireGuard users, their keys, and the generated .conf configuration files. Client configurations already imported won't be able to connect after uninstall — the server side of the tunnel is gone along with the private key. After a fresh install, the module and users have to be created from scratch; new keys are issued, and clients need to re-import the .conf files.

After confirmation, the panel runs the uninstall. When it finishes, the module page returns to its initial state with the Install button.

What's next

BeAdmin © 2025. All rights reserved.