WireGuardPortal is a Paymenter server extension that automates WireGuard VPN service lifecycle management through wg-portal. It creates and manages one or more WireGuard peers per purchased service, stores service-specific peer metadata in Paymenter’s properties relation, and provides customers with ready-to-use .conf client files directly from their service page.
The extension supports:
- Automated provisioning on service creation
- Suspend/unsuspend/terminate actions mapped to peer state in wg-portal
- Multi-device plans (multiple peers per service)
- Dynamic config generation (endpoint, allowed IPs, DNS, keepalive)
- QR-code display and copy/download actions for easy client onboarding
- Live usage visibility with traffic stats collection
- Optional Prometheus metrics fallback when API counters are unavailable
- Plan-level enforcement features, including bandwidth limits and monthly data caps, with policy tracking and automatic peer restriction when limits are exceeded