# Client Area

Overview of the client-facing features available in the Mikrotik VPN WHMCS module, including the home screen (VPN server address, protocols, credentials, connection status, bandwidth limit), email notifications (traffic limit, suspension), traffic usage statistics, and usage-based billing metrics.

# Client Area Home Screen

### Mikrotik VPN module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-module-mikrotik-vpn.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Mikrotik-VPN/) | [Community](https://community.puqcloud.com/)

## VPN Service Management Dashboard

After authenticating in the client area, the end customer sees the VPN service management page under the **Manage** tab. 

### Quick Actions
At the top of the dashboard, clients can find:
- **Connection setup instructions** — links to your predefined documentation (if configured).
- **Reset VPN Interface** — allows the client to manually reset their active VPN session.

### Connection Information Card
Displays all the primary details needed to establish the connection:
- **Server Address** — IP address or hostname of the Mikrotik router.
- **Username** — VPN username (auto-generated or assigned).
- **Password** — masked password with an option to toggle visibility.
- **Bandwidth Limits** — the configured upload/download speeds for the account (e.g. `10 Mb/s`).
*(Includes quick-copy icons next to sensitive values).*

### Connection Status Card
Provides real-time information by querying the router API:
- **Status** — `ONLINE` or `OFFLINE` badge.
- **Active Service** — which protocol is currently in use (e.g. `pptp`).
- **Client IP Address** — the internal VPN IP address assigned.
- **Session Uptime** — duration of the current connection.

### VPN Protocols Section
Displays the specific connection details for each VPN protocol enabled by the administrator (PPTP, L2TP, OpenVPN, SSTP). Each section contains:
- Connection port and security details.
- Custom HTML blocks with specific instructions if injected by the admin.
- Dedicated download buttons (e.g., OpenVPN profile configuration file).
- Specialized keys (e.g., `L2TP IPSEC PSK KEY`).

---

## Screenshot

![Client area home screen](https://doc.puq.info/uploads/images/gallery/2026-09/embedded-image-6qxyh9bw.png)
*client-area-home.png*

![Client area sidebar](https://doc.puq.info/uploads/images/gallery/2026-09/embedded-image-smn0z4f3.png)
*client-area-sidebar.png*


<!-- sync:a307d65661779c71 -->

# Traffic Statistics

### Mikrotik VPN module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-module-mikrotik-vpn.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Mikrotik-VPN/) | [Community](https://community.puqcloud.com/)

## Traffic Usage Metrics

The client can view historical traffic usage statistics by navigating to the **Traffic statistics** tab in the sidebar menu of the VPN service overview.

The statistics page presents visual representations of the client's traffic usage over time, dynamically generated using charting libraries:

1. **Traffic statistics for the last 30 days:**
   A bar chart displaying daily bandwidth consumption, differentiating between **Download GB** (blue) and **Upload GB** (red).
   
2. **Total traffic for all time per month:**
   A bar chart providing a higher-level monthly aggregation of all downloaded and uploaded data for long-term usage tracking.

> **Note:** The data powering these charts is continuously gathered by the WHMCS Cron job and securely stored in the database according to the history retention policy defined in the module's product settings.

---

## Screenshot

![Traffic statistics metrics view](https://doc.puq.info/uploads/images/gallery/2026-09/embedded-image-x9uwynea.png)
*client-area-traffic.png*


<!-- sync:c2421b1a48f170d0 -->

# Usage Metrics

### Mikrotik VPN module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-module-mikrotik-vpn.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Mikrotik-VPN/) | [Community](https://community.puqcloud.com/)

## Usage-Based Billing Metrics

When WHMCS Metric Billing is enabled for the product, clients can track their current traffic consumption and billing rates under the **Metrics** tab on their service management page.

### Metrics Tab Overview

The tab presents:
- **Bandwidth Usage Download (GB)** — cumulative downloaded data counted towards usage-based billing.
- **Bandwidth Usage Upload (GB)** — cumulative uploaded data counted towards usage-based billing.
- **Pricing** — unit price charged per gigabyte (e.g. `$10.00 / GB`).
- **Last Update** — relative time when metrics were last synchronized from the Mikrotik router by the WHMCS cron job.

---

## Screenshot

![Client area usage metrics](https://doc.puq.info/uploads/images/gallery/2026-09/embedded-image-30dtrlkm.png)
*client-area-metrics.png*


<!-- sync:b997178b8e303c3b -->

