Documentation

WifiMan User Guide

Complete instructions for dashboard users (hotspot owners & resellers) and WiFi customers (end-users).

Part 1: For Dashboard Users

As a dashboard user you have access to a portal where you can monitor sales, manage routers, generate vouchers, and withdraw earnings.

1. Logging In

  1. Navigate to the WifiMan login page.
  2. Enter your Username and Password.
  3. Click Login to access your dashboard.

2. Dashboard Overview

Once logged in, the dashboard gives you a quick snapshot of your business:

  • Current Balance: Your available funds that can be withdrawn.
  • Active Vouchers: Total number of unused or currently active vouchers.
  • Today's Earnings: Total deposits received today.
  • Monthly Online Earnings: Total deposits received for the current month.
  • Recent Transactions: A detailed log of deposits, withdrawals, fees, and debt payments.

3. Withdrawing Funds

You can withdraw earnings directly to your Mobile Money account (MTN or Airtel).

  1. In the Current Balance section, enter the amount you wish to withdraw (Minimum 20,000 UGX).
  2. Click Withdraw.
  3. Your withdrawal will be processed instantly, and an SMS notification will be sent.
Fees & Debt: A 1% fee applies to all withdrawals. If your account has an outstanding debt, you must pay at least 30% of the withdrawal amount towards the debt before the transaction can be processed. The system calculates this automatically.

4. Quick Actions Menu

Use the Quick Actions buttons on your dashboard to navigate quickly:

  • Payments: View all payment history and detailed transaction logs.
  • Vouchers: View, manage, and track all generated vouchers.
  • Enter Vouchers: Manually generate or enter new vouchers into the system.
  • Packages: Manage your pricing tiers and WiFi packages.
  • Router Manager: Access your MikroTik router management interface.

5. WifiMan Android Mobile App (Native APK)

Manage your entire hotspot network directly from your phone. WifiMan includes a native Android companion application designed specifically for hotspot operators, resellers, and field technicians.

APK Download: You can download the latest official release directly from your dashboard or via Download wifiman.apk. Requires Android 5.0 (Lollipop) or higher.
Persistent Session Storage

Leverages native WebView CookieManager to securely retain your authentication cookies across app launches and device reboots. You never have to re-enter credentials in the field.

Native Pull-to-Refresh

Swipe down anywhere on the screen to instantly re-query live router statistics, active customer sessions, interface bandwidth counters, and realtime payment notifications.

Background DownloadManager

Integrated with Android's system DownloadManager. Batch voucher CSV exports and WireGuard .conf files download directly to your device storage with download progress notifications.

Camera & File Chooser

Full WebChromeClient file chooser support allows direct camera capture or local file upload for router backup .rsc files, payment receipts, and custom captive portal branding logos.

Offline Auto-Recovery

If mobile data or field WiFi drops, the app displays an offline recovery screen with an instant retry action, preventing corrupted forms or broken session state.

Biometric Ready & Sandboxed

Packaged with hardware-accelerated rendering and isolated sandbox storage to safeguard your router passwords and financial withdrawal permissions.

6. Cloud WireGuard VPN & Auto-Setup Script

Connect any MikroTik RouterOS device (hAP lite, hAP ac2/ac3, L009, RB750, CCR) to the WifiMan cloud cluster—even when behind Carrier-Grade NAT (CGNAT), 4G/5G mobile modems, or dynamic IP connections.

Cloud VPN Tunnel (10.7.0.0/22)

Each reseller account is assigned a private, static WireGuard tunnel IP address. All management API commands, RADIUS authentication requests, and health monitoring pass through this encrypted tunnel.

1-Click Script Generator

Use the script generator (generate_router_script.php) to produce a copy-paste ready RouterOS .rsc script customized with your unique keys, interfaces, and branding.

What the Auto-Setup Script Configures

  • Admin Account Provisioning: Safely creates your custom admin username and strong password, disabling the default insecure admin user.
  • LAN Bridge & Port Enrollment: Dynamically detects all physical ethernet and wireless ports (ether2, ether3, wlan1, wifi1) and adds them to your hotspot bridge while preserving ether1 for WAN.
  • WireGuard Interface (wg1): Configures interface keys, cloud endpoint (41.223.55.82:51820), and sets persistent-keepalive=25s to keep NAT firewalls open continuously.
  • FreeRADIUS Client: Points the hotspot server to the WifiMan FreeRADIUS server (10.7.0.1) and enables RFC 3576 / RFC 3799 incoming disconnect requests on UDP port 3799.
  • Hardened Firewall: Creates stateful firewall filter rules (protecting router input from WAN while permitting ICMP, LAN traffic, and WireGuard UDP ports) and sets up NAT masquerade.
  • Walled Garden Pre-population: Whitelists payment gateway APIs (MTN, Airtel, PegPay), the entertainment portal (movies.ug), and the central cloud portal (wifimanug.com) so users can pay without prior internet access.
  • Self-Healing Watchdog: Configures RouterOS /tool netwatch to test ping reachability to 10.7.0.1 every 3 minutes. If the connection fails, it automatically cycles the WireGuard tunnel.
  • Automated Portal Asset Fetch: Automatically fetches and extracts the responsive captive portal template files directly into router storage (hotspot/ or flash/hotspot/).
RouterOS Terminal Command Terminal RSC
# Paste the generated script into your MikroTik Terminal (WinBox or WebFig):
/import file-name=setup.rsc
# Or paste the configuration commands directly into the terminal window

7. Router Manager

The Router Manager lets you configure and monitor your MikroTik routers:

  • View Routers: See all your added routers along with their live online/offline status and tunnel IP.
  • Add Router: Connect a new router by providing the Name, IP Address (or WireGuard VPN IP), Username, and Password.
  • Manage Routers: Edit connection details, download configuration files, or remove routers no longer in use.

Router Details Interface

When you click on a specific router, you'll see a detailed management dashboard with multiple tabs:

Generate (Voucher Generation)

  • Create Vouchers in Bulk: Generate multiple vouchers at once by specifying Quantity, Username Length, and Character Type (Numbers, Lowercase, Uppercase, or Mixed).
  • Voucher Settings: Assign a Profile, Data Limit, Time Limit, and an optional Prefix or Batch Comment for easy tracking.
  • Stock Widget: See stock levels per profile at a glance — green (OK), amber (low), red (out of stock).
  • Last Batch: View the most recently generated batch. Print, Export to CSV, Add Time, or Delete the entire batch in one click.
Click any profile's stock card to load its existing inventory for quick management.

Sold Vouchers

  • Track Sales: View statistics for Total Sold, Active Vouchers, and Revenue.
  • Advanced Filtering: Filter sold vouchers by date ranges (Today, Yesterday, 7d, 30d) or by state (Shop sale, Online sale, Expired).
  • Global Search: Search for a specific voucher code across all dates.
  • Bulk Management: Select multiple sold vouchers to extend their time or delete them.

Payments

  • Deposit Logs: Review detailed logs of all deposit payments associated with this router.
  • Search: Search for specific transactions by phone number, voucher code, or transaction ID.
  • Pagination: Navigate through large payment histories with built-in pagination controls.

Active Sessions

  • Live Monitoring: Watch active internet sessions on your hotspot in real-time via Server-Sent Events (SSE).
  • Bandwidth Usage: Monitor total Download/Upload traffic and identify Top Bandwidth Users.
  • Session Control: Forcefully disconnect any active session if needed.
  • Sort & Search: Filter sessions by user, IP, MAC, or sort by expiry, usage, or profile.
The green Live dot in the header shows the connection status. Sessions update automatically without refreshing the page.

Users

  • Manage Vouchers: View and manage all user accounts (vouchers) on the router.
  • Add Single User: Manually create a single voucher/user with custom limits, server, and profile.
  • Filter by Batch: Filter users by comment/batch label to view specific batches.
  • Bulk Actions: Select multiple users to Delete, Add Time, Print, or Export to CSV.
  • Inline Editing: Click edit on any user to modify their profile, time limit, or data limit in place.
  • Pagination: Navigate large user lists with configurable page sizes (10–500).

Reports

  • Revenue Analytics: View revenue reports filtered by custom date ranges (Today, Yesterday, 7d, 14d, 30d, 90d).
  • Visual Charts: Analyze performance through four chart types:
    • Daily Revenue — line chart of revenue over time
    • Revenue by Profile — pie chart showing which packages earn the most
    • Sales by Channel — bar chart comparing shop vs. online sales
    • Peak Hours — bar chart showing your busiest times of day
  • Profile Filter: Click any profile segment to drill down into that specific profile's data.

Customer Lookup

  • Phone Search: Enter a mobile number to view a customer's complete deposit and purchase history.
  • CSV Export: Export all customer phone numbers to CSV for marketing or accounting.

Profiles

  • Package Management: Create and modify user profiles that act as your internet packages.
  • Profile Settings: Define Rate Limits (Speed), Shared Users, Validity (hours), and Price for each profile.
  • Edit & Delete: Modify existing profiles inline or remove profiles you no longer need.

Hotspot & Anti-Tethering

  • Hotspot Servers: View and toggle (enable/disable) hotspot servers configured on your router.
  • Anti-Tethering: Enable TTL-based detection to block users from sharing their connection via mobile hotspot or USB tethering. You can enable, disable, or fully remove the firewall rules.
Anti-tethering creates firewall rules on your router. The Remove Rules option deletes them entirely if you ever want to allow sharing again.

Hosts & DHCP

  • Connected Hosts: View all devices currently connected to the hotspot, including their MAC, IP, and authorization status.
  • IP Bindings: Create bypass or block rules for specific MAC addresses to control permanent network access.
  • DHCP Leases: View all DHCP leases with filtering by status (Bound, Waiting, Static, Dynamic).
  • Lease Actions: Make leases static, update comments, or delete leases directly from the interface.

Device Monitor

  • Netwatch Integration: Add access points and network devices to Netwatch for uptime monitoring.
  • Status Dashboard: See at a glance how many devices are Up vs. Down.
  • Device Management: Add new devices with Name, IP, and optional MAC (for static DHCP). Edit or remove devices as needed.

Interfaces & Bridge Management

Monitor and configure network interfaces (Ethernet, Wireless, Bridge, VLAN, and WireGuard) directly through the web console without requiring WinBox or SSH.

  • Live Interface Grid: View all interfaces with real-time status indicators: Running, Down, and Disabled.
  • Live Traffic Telemetry: View active RX/TX throughput, cumulative byte counters, link speeds (e.g. 100M/1G Full Duplex), and MTU sizing.
  • Bridge Port Management: Dynamically attach physical ports or wireless interfaces to the local hotspot bridge (e.g. hs-bridge) or detach ports for dedicated WAN usage.
  • DHCP Client Control: Toggle DHCP clients on any physical interface with one click to quickly acquire upstream WAN IPs from modems or fiber ONTs.
  • Safety Protection: Built-in safeguards check whether an interface is actively assigned to Multi-WAN load balancing or the WireGuard cloud tunnel before allowing it to be disabled.

Multi-WAN Load Balancing & Failover

Combine multiple internet connections (e.g. Primary Fiber + 4G LTE Backup or dual wireless links) to achieve aggregated throughput and automatic zero-downtime failover.

PCC Load Balancing

Uses RouterOS Per Connection Classifier (PCC) mangle rules to distribute client traffic evenly across all active WAN connections while maintaining session persistence for banking and SSL services.

Automated Health Failover

Proactively pings upstream gateways via check-gateway=ping. If an ISP line drops or suffers packet loss, traffic automatically redirects to surviving links in milliseconds.

4-Step Multi-WAN Setup Wizard

  1. Step 1: Select WAN Interfaces: Select two or more WAN interfaces. The wizard automatically detects interfaces with active DHCP clients and gateway routes.
  2. Step 2: Gateway Configuration: Review detected gateway IPs or define static gateways. Configure failover ping intervals and metric distances.
  3. Step 3: NAT Masquerade: Automatically establishes outbound srcnat masquerade rules for each chosen WAN interface.
  4. Step 4: Mangle & Routing Deployment: Generates and applies routing marks, connection tracking marks, and routing rules with atomic verification.
Safe 1-Click Teardown: If you ever need to revert back to single WAN operation, click Remove Multi-WAN in the interface. The system cleanly removes all Multi-WAN mangle rules, routing marks, and NAT entries without dropping your primary connection.

Reboot & System Resources

  • Resource Dashboard: Real-time hardware health inspection showing CPU model, core count, CPU utilization percentage, free RAM, storage disk utilization, RouterOS architecture, and total uptime.
  • Safe Remote Reboot: Remotely restart your MikroTik router from anywhere in the world. Requires typing REBOOT into the confirmation dialog to prevent accidental clicks.
Warning: Rebooting will disconnect all active customer hotspot sessions. The router will be unreachable for approximately 60–90 seconds while RouterOS reinitializes.

Part 2: For WiFi Customers

If you're a customer trying to connect to a WiFi network, follow these steps to purchase internet access securely.

1. Connecting to the Network

  1. Turn on WiFi on your device and select the hotspot network name (SSID).
  2. A "Sign in to network" prompt should appear automatically. If it doesn't, open any browser and navigate to any web address (e.g. google.com or wifi.login). You will be redirected to the captive portal welcome page.

2. Purchasing a Package

  1. On the welcome page, select your preferred internet package (e.g. 1 Hour, Daily Unlimited, Weekly, Monthly).
  2. Enter your Mobile Money Number (MTN or Airtel, formatted as 07XXXXXXXX).
  3. Click the Secure Payment button.

3. Confirming Payment

  1. Check your phone screen for the Mobile Money prompt.
  2. Enter your Mobile Money PIN to authorize the payment.
  3. Once approved, the portal automatically authenticates your device MAC address. You're online within 3–5 seconds!
Instant Activation: Online payments are verified via real-time webhooks. You do not need to copy and paste voucher codes when using online push.

4. Free WiFi Trial

New to the hotspot? Customers can test the connection speed completely free of charge before purchasing a voucher.

  • 1-Click Activation: Tap the Free Trial badge on the captive portal welcome screen.
  • Automatic Provisioning: The system automatically creates a temporary trial voucher (T-[MAC]) on the router and logs you in immediately.
  • Cooldown Protection: To prevent abuse, each device is allowed 1 free trial every 24 hours. An automated countdown tells returning users when their next trial becomes available.

5. QR Voucher Scanning & Auto-Login

Built-in QR Scanner

Purchased a physical scratch voucher? Tap the camera icon on the login box to open the barcode scanner. Hold your paper voucher in front of the lens to log in without typing.

Automatic Re-Login

Returning devices are recognized by their MAC address and local cookie. You do not need to re-type your PIN if your voucher validity has not expired.

6. Free Entertainment Portal (movies.ug)

WifiMan features an integrated entertainment walled-garden bypass. Hotspot clients can stream and browse movies completely free without purchasing data.

  • Click the Free Movies badge on the portal or navigate to movies.ug.
  • The domain is whitelisted in the router's walled garden, allowing access even before logging in or making a payment.
  • Watch movie trailers, local Ugandan films, and trending series without consuming your paid voucher time.

7. Customer Support

Need assistance or experiencing connectivity issues? Hotspot owners display their direct phone number at the bottom of the portal page. Tap the number to call the help desk directly.

Back to Top

© 2026 WifiMan Billing System. All rights reserved.