WireGuard VPN Account Provisioning for WHMCS
Sell WireGuard VPN access on your own servers: peers created on payment, config files and QR codes in the client area, peers removed when billing stops.
What will the WireGuard module do?
It lets you sell VPN access on WireGuard servers you run yourself and bill it in WHMCS. When an order is paid, the module creates a key pair and a tunnel address for each device the plan allows, and a small agent on the chosen VPN server adds those peers to its WireGuard interface. The customer opens the service in the client area and downloads a ready config file for each device, or scans its QR code with the WireGuard app on a phone. When the service is suspended or terminated, the peers come off the server.
This product is built to order: you get the license key after a manual account check (up to 24 hours) and the download within 15 business days.
What does WHMCS already do, and what does this add?
WHMCS resells NordVPN through MarketConnect, which creates accounts on NordVPN's own network, and it can spread services across servers with server groups. It has no way to create VPN access on servers you operate and no WireGuard support. This module adds that: each VPN server becomes a server in WHMCS, and the module manages peers, keys, addresses and configs for the services placed on it.
What is included?
| Part | What you get |
|---|---|
| Order paid | Key pair and tunnel address per device, peers added to the server's WireGuard interface |
| Product settings | Devices per service, DNS servers, full or split tunnel, optional preshared key |
| Addresses | Tunnel addresses from a range you set per server, IPv6 too if you add a range, freed on termination |
| Client area | Config file download and QR code per device, and new keys for a lost device |
| Overdue | Peers taken off the interface on suspension and put back on unsuspension |
| Termination | Peers removed, keys deleted and addresses released |
| Admin view | Last handshake and data transferred per device, read from the server |
| Agent | Small service on each VPN server that accepts signed requests from your WHMCS server only |
Who is it for?
Hosting companies and network operators that already run WireGuard servers, or want to, and would rather sell VPN access under their own brand than resell someone else's network. Without a module, every new customer means logging in to a server, generating keys, editing the interface and sending a config file by hand, and an unpaid customer keeps working until someone remembers to remove them.
How does the agent keep the servers safe?
WHMCS never holds an SSH login for your VPN servers. The agent is the only part that changes WireGuard, it listens on a port you open to your WHMCS server alone, and it rejects any request that is not signed with that server's shared secret or that arrives too late to be fresh. It adds and removes peers on the running interface and saves the change, so peers survive a restart. Private keys are stored encrypted in WHMCS, so a customer can download a config again later.
What do you need, and what are the limits?
Requirements: WHMCS 8.13 or 9.x (I confirm your exact version at purchase), PHP 8.1 or newer, and Linux VPN servers with WireGuard installed, an interface set up and root access to install the agent as a systemd service.
Limits: you set up each server's WireGuard interface, forwarding, NAT and firewall; the agent manages peers on it. The module does not meter or cap bandwidth, limit speed, log customer traffic or supply apps, and it covers WireGuard only, not OpenVPN or IPsec. Running a VPN service is subject to the law where your servers sit, so publish an acceptable use policy.
It costs $99 once for a lifetime license with twelve months of updates and support, and a seven-day refund window. I check each account by hand, which can take up to 24 hours, before the license key is issued, and the download follows within 15 business days of purchase.
Key features
- WireGuard peers created on your own servers when an order is paid
- Key pair and tunnel address generated for each device
- Config file download and QR code per device in the client area
- Devices per service, DNS and full or split tunnel set per product
- Optional preshared key on each peer
- Peers removed on suspension and restored on unsuspension
- Peers, keys and addresses cleaned up on termination
- New keys for a lost device from the client area
- Last handshake and data transferred shown to staff
- Signed requests to a small agent instead of SSH access
Why customers buy this module
- →No more generating keys and editing servers by hand for each customer
- →Unpaid customers lose access on the day WHMCS suspends them
- →Customers set up a phone by scanning a QR code instead of copying keys
- →Your VPN servers stay closed to everything except WHMCS
Frequently asked questions
Does WHMCS need root SSH access to my VPN servers?
No. The agent on each server is the only part that changes WireGuard, and it accepts signed requests only from your WHMCS server. WHMCS never stores an SSH key or root password for the VPN servers. Keep the agent's port closed to everyone else in your firewall.
What happens to a customer's config when the service is suspended?
The peers are taken off the server's WireGuard interface, so the tunnel stops working, but their keys and addresses stay on record in WHMCS. When the invoice is paid and the service is unsuspended, the same peers go back on the interface and the customer's existing configs work again without a new download.
When will I get it, and what if you can't deliver?
It is built to order. After a manual account check, which can take up to 24 hours, you get the license key, and the download follows within 15 business days of purchase. If I do not deliver it in that time, you get a full refund. Once it is delivered, the store's 7-day refund window applies.
Technical specifications
- WHMCS
- 8.13 and 9.x (confirmed at purchase)
- PHP
- 8.1+
- VPN servers
- Linux with WireGuard and systemd
- Connection
- Signed HTTPS requests to an agent on each server
- Availability
- Built to order, delivered in 15 business days
- License
- Lifetime, 1 year of updates and support included
- Delivery
- License key after a manual account check (up to 24 hours); download when built
- Refund window
- 7 days
Related modules
Self-Service cPanel Transfer Wizard for WHMCS
I built this wizard so customers can move their own sites from another cPanel host to yours without a ticket. It uses WHM API tokens, never root passwords, and checks the site, mail and DNS after the move.
Hetzner Cloud Provisioning and Auto-Sync for WHMCS
I built this Hetzner Cloud module so your WHMCS catalog never falls behind Hetzner. Server types, locations and prices sync hourly with your markup, and customers manage power, console, snapshots, networks, firewalls and volumes.
Vultr Cloud Server Provisioning for WHMCS
I built this module to resell Vultr through WHMCS. A paid order deploys the instance in the plan, region and OS the customer chose, and they get power controls, console, snapshots and rDNS without seeing Vultr.