Correlating IP, MAC, and Session Logs on Guest Wi-Fi

· Access Logs and Privacy

For guest Wi-Fi access logs to support dependable session correlation, every private IP address behind Network Address Translation connects cleanly with a client MAC address, precise start and stop timestamps, and a verified identity reference. A raw DHCP lease table alone or an isolated portal login row rarely provides enough context when devices roam across access points, drop abruptly, or cycle through shared local address pools. This guide explains the protocol mechanisms and configuration practices that keep guest session correlation consistent across regions.

When correlating access records, Hotspotly records only the assigned internal IP, client MAC address, session start and end timestamps, aggregate traffic byte counters, and verified identity reference while excluding visited URLs and target domain queries. Access-logging rules vary by country (for example, Türkiye maintains specific access-logging parameters and every other country you operate in needs its own check); Hotspotly provides configurable country-level profile parameters, with legal validation handled separately per country. This article is not legal advice, so consult your legal counsel and local legal advisors before finalizing retention or logging policies.

Assigned Internal IP and MAC Context Behind NAT

Whenever a visitor joins a guest SSID, the local gateway or DHCP server leases a private internal IP from a defined subnet pool. In busy hospitality venues and offices, short lease timers recycle private addresses throughout the day so an internal IP held by one smartphone in the morning may serve a different device in the afternoon. Determining which guest device held a local address within a given window depends on accurate session boundaries down to the second.

When traffic traverses outbound Network Address Translation, perimeter firewall logs observe only the shared public address and translated source port within a given timeframe. Hotspotly complements perimeter telemetry on the internal side by binding the local assigned IP to the client link-layer MAC address and verified session identifier. That linkage supports structured end-to-end session attribution without inspecting traffic payloads or capturing browsing histories.

The Internal IP, MAC, and Identity Triad

Each persisted session row pairs the allocated internal IP with the client MAC address and the identity reference verified at the captive portal. Instead of showing merely that a local IP was active during a busy shift, the correlated log reveals which hardware interface and verified session token used that address inside an explicit time interval. For broader deployment patterns, review the guest access governance guide.

RADIUS Accounting Lifecycle: Start, Interim-Update, and Stop

RADIUS Accounting provides the transactional backbone for trustworthy guest session tracking across wireless controllers and routers. Once a guest completes captive portal verification, the gateway sends an accounting Start packet to initialize the session record. While connectivity persists, the router transmits an Interim-Update packet every five minutes, or 300 seconds, and closes the ledger row with an accounting Stop packet upon disconnect or session timeout.

Why 5-Minute Interim-Update Intervals Matter

Guest smartphones frequently leave Wi-Fi coverage unexpectedly, run out of battery, or lose connectivity during local power interruptions without sending a clean disconnect signal. Dispatching Interim-Update packets every five minutes updates cumulative upload and download byte counters and establishes fresh liveliness checkpoints so an ungraceful drop leaves only a brief bounded gap. You can examine active session tracking and termination reasons in the session monitoring documentation.

  • Accounting Start: Opens the session ledger with the unique session identifier, assigned internal IP, client MAC address, start timestamp, and verified identity reference.
  • 5-Minute Interim-Update: Confirms live connectivity, refreshes upload and download octet totals, and bounds uncertainty if a gateway restarts unexpectedly.
  • Accounting Stop: Finalizes the record with the recorded termination timestamp, closing traffic totals, and disconnect cause code.

DHCP use-radius=accounting Sync and Address Consistency

A frequent operational gap arises when the router DHCP daemon assigns and reclaims IP leases independently of the hotspot accounting cycle. On MikroTik routers, enabling use-radius=accounting inside the DHCP server configuration ties address allocation and lease release events directly to centralized RADIUS accounting. Without that synchronization, a reconnecting handset can obtain a new address while stale lease entries linger in gateway tables.

Balancing DHCP Lease Time Against Hotspot Idle Timeout

If DHCP leases outlast the hotspot idle timeout by hours, returning visitors can reuse the same private IP across separate visits with overlapping accounting edges. Conversely, overly brief DHCP lease windows can trigger mid-session address changes that fragment continuous activity logs. Reviewing both timers together alongside centralized lifecycle settings in the data retention guide keeps lease transitions orderly.

Impact of MAC Randomization and bypassed IP Bindings

Modern iOS, Android, and Windows devices generate per-network randomized MAC addresses to limit cross-venue tracking. Most operating systems keep one stable randomized MAC while remembering an SSID profile, yet forgetting the network or resetting wireless settings assigns a fresh MAC to the same hardware. When that shift occurs, the gateway treats the new MAC as a separate endpoint needing fresh portal authentication, keeping session-to-identity linkage accurate rather than guessing across unseen addresses.

Equal discipline applies to bypassed static IP or MAC bindings used for lobby printers, payment terminals, smart televisions, or signage players. Entries placed in a bypassed table bypass captive portal login altogether and generate no individual visitor identity reference. Adding unmanaged staff or visitor smartphones into bypass tables creates blind spots in the governance overview outlined on the Hotspotly compliance overview page.

To preserve clean accountability, segregate stationary equipment onto a dedicated device VLAN wherever possible and log the physical room and asset custodian for every bypassed entry. Documenting why fixed hardware skips portal prompts keeps audit reviews straightforward while guest smartphones remain routed through standard portal verification.

NTP Clock Synchronization and Operational Verification Steps

Even a slight clock drift between an edge router, perimeter firewall, and RADIUS collector can skew outbound NAT port-translation records against local assigned IP sessions. Synchronized network clocks keep Start, Interim-Update, and Stop timestamps consistent across distributed branches. Run these four checks before opening a site to live guest traffic.

  1. Centralized NTP Configuration: Configure redundant NTP pools across all gateways and access controllers and verify consistent UTC timestamp output.
  2. Interim-Update Verification: Confirm the 300-second interim cadence is active and that UDP accounting packets traverse internal firewall rules cleanly.
  3. DHCP and Hotspot Sync: Test lease assignment and expiry with use-radius=accounting active to verify smooth cleanup when guests disconnect.
  4. Bypass Inventory Audits: Review bypassed IP and MAC reservations monthly so only documented stationary hardware sits outside portal login.

Because access-logging scopes, regional country profiles, and organizational privacy policies differ widely across jurisdictions, review how your combined gateway configuration, identity workflow, and retention parameters match local rules through qualified legal advisors in your region.

All posts