MikroTik WireGuard VPN For WHMCS
This documentation is still being prepared. Please allow us a little more time to polish and publish the complete article.
Thank you for your patience!
Contents |
About MikroTik WireGuard VPN For WHMCS
| MikroTik WireGuard VPN For WHMCS enables automated provisioning and management of WireGuard VPN services on MikroTik routers. The module creates VPN peers, assigns tunnel IP addresses, applies bandwidth limits, and tracks traffic usage directly through WHMCS. |
- Core Features:
| ✔ Automate Complete WireGuard VPN Service Provisioning |
| ✔ Manage VPN Accounts On MikroTik Routers Through WHMCS |
| ✔ Control Bandwidth And Track Traffic Usage |
| ✔ Provide Clients With Ready-To-Use VPN Configurations |
| ✔ Support Usage-Based Billing For Transferred Traffic |
- Admin Area:
| ✔ Create, Suspend, Unsuspend And Terminate VPN Accounts |
| ✔ Change Service Packages |
| ✔ View Peer And Connection Details |
| ✔ Download VPN Configuration Files |
| ✔ View Daily And Monthly Traffic Statistics |
| ✔ Reset VPN Connections |
| ✔ Configure Products: |
| ✔ Select MikroTik Server And WireGuard Interface |
| ✔ Define Peer Comment Prefix |
| ✔ Configure Allowed IP Addresses And DNS Servers |
| ✔ Set Keepalive Interval |
| ✔ Define Upload And Download Speed Limits |
| ✔ Enable Traffic Statistics |
| ✔ Configure Traffic Data Retention Period |
| ✔ Define Setup Guide And WireGuard Client Download URLs |
| ✔ Enable Usage-Based Metric Billing |
- Addon Module:
| ✔ View Dashboard With Server, Account And Service Summaries |
| ✔ View General Traffic Overview Graph |
| ✔ Manage Multiple MikroTik Servers |
| ✔ View All WireGuard VPN Accounts And Peers |
| ✔ Preview Peer State, Interface, Last Handshake And Traffic Usage |
| ✔ View Connection Details And Configuration |
| ✔ Control Staff Access Level To Specific Resources With ACL |
| ✔ Customize Module Language Files With "Translations" Tool |
| ✔ Review Module Activity And Error Logs |
- Client Area:
| ✔ View VPN Account And Connection Status |
| ✔ View Connection Details And Assigned Tunnel IP Address |
| ✔ Check Applied Bandwidth Limits |
| ✔ Preview WireGuard Configuration |
| ✔ Scan Configuration QR Code |
| ✔ Download Ready-To-Use .conf File |
| ✔ View Daily And Monthly Traffic Statistics |
| ✔ Reset VPN Connection |
| ✔ Access Setup Guide |
| ✔ Download WireGuard Client |
- General Info:
| ✔ Supports MikroTik RouterOS 7.20 And Later |
| ✔ Supports Multiple MikroTik Routers |
| ✔ Multi-Language Support With Custom Translations Tool |
| ✔ Supports PHP 8.3 Back To PHP 8.2 |
| ✔ Supports WHMCS Themes "Six", "Twenty-One", "Nexus" And "Lagom WHMCS Client Theme" |
| ✔ Supports WHMCS V9.X |
| ✔ Requires ionCube Loader V14 Or Later |
| ✔ Easy Module Upgrade To Open Source Version |
Installation and Configuration
|
This tutorial will show you how to successfully install and configure MikroTik WireGuard VPN For WHMCS. |
Installation
| 1. Log in to our client area and download the module. |
|
| 2. Extract the module package into the main WHMCS directory. The files should be uploaded into the corresponding WHMCS folders. |
|
| 3. When you install MikroTik WireGuard VPN For WHMCS for the first time you have to rename 'license_RENAME.php' file. The file is located in 'modules/addons/MikroikWireGuardVpn For WHMCS/license_RENAME.php'. Rename it from 'license_RENAME.php' to 'license.php'. |
|
| 4. In order to configure your license key, you have to edit the previously renamed 'license.php' file. Enter your license key between quotation marks as presented on the following screen. You can find your license key in our client area → 'My Products'. |
|
5. Log in to your WHMCS admin area and navigate to System Settings → Addon Modules.
The addon module can now be opened through Addons → MikroTik WireGuard VPN. |
|
MikroTik Router Preparation
|
Before connecting the router to WHMCS, make sure that:
Important: Restrict API access to trusted IP addresses whenever possible and use HTTPS for production environments. |
Server Configuration
| 6. Navigate to System Settings → Servers and click Add New Server. Choose MikroTik WireGuard VPN from the Module dropdown menu and provide the router connection details. |
|
|
Configure the following fields:
|
| 7. Use Test Connection to verify the provided credentials and connection settings. If the test is successful, save the server configuration. |
| 8. Create or select a server group and assign the configured MikroTik server to it. The server group can later be selected in the product's module settings. Multiple routers may be added to support a larger VPN infrastructure. |
|






