Devices without a login page: syslog records
Conditions and steps for keeping access log records from DHCP syslog messages on devices that use no login page.
Some venues show guests no login page and only want to keep access log records. In that case the record is built from the device's DHCP messages: which internal IP address was given to which MAC address, when, and when it was released. These records contain no guest identity.
Hotspotly's syslog collector accepts messages only through a VPN tunnel. Syslog messages are not signed; the only proof that a message really came from your device is the tunnel address. So this path can only be used on devices that connect to Hotspotly with a tunnel.
In short
On MikroTik, use the Logging only mode on the Operation mode card of the device page. Add FortiGate and Palo Alto with IPsec from the Add Device wizard, then choose Write to the access log store on the Syslog and access logging card. This path does not exist on tunnel-less devices.
Which path for which device?
| Device | Connection | Source of the access log record |
|---|---|---|
| MikroTik RouterOS | WireGuard or L2TP/IPsec tunnel | DHCP RADIUS accounting in Logging only mode; syslog DHCP messages as an extra source. |
| Fortinet FortiGate | IPsec tunnel (Add Device) | Syslog DHCP messages. |
| Palo Alto Networks | IPsec tunnel (Add Device) | Syslog DHCP messages. |
| Devices connected without a tunnel (Sophos, Zyxel, UniFi, Omada, Meraki, Aruba, Teltonika, Ruijie) | Static WAN IP or HTTPS | Access logs by syslog are not available. On these devices the session record comes from RADIUS accounting when the login page is used (on Ruijie, from the counter reports). |
If you have a device that you want to log without a login page and without a tunnel, contact support.
Prerequisites
| You need | Details |
|---|---|
| Tunnel | The device must be connected to Hotspotly with a VPN tunnel. |
| DHCP | The device must be the DHCP server of the guest network; the records come from DHCP assign and release messages. |
| Syslog collector | If the Hotspotly syslog collector is not enabled on your account, contact support. |
| Guest block | A rule that blocks traffic from the guest network to the collector address (below). |
1. MikroTik: Log only mode
First add the MikroTik with the RouterOS 7 (WireGuard) or RouterOS 6.49 (L2TP/IPsec) guide. Then, on the Operation mode card of the device page:
- If the device has active hotspots, deactivate them first.
- Read and acknowledge the warning, then click Switch to Logging only.
- Write the settings to the router with Apply to router, or run the script from Terminal script in the terminal. If DHCP interfaces (optional) is left empty, it applies to every DHCP server on the router.
If the router has no DHCP server, the setup writes nothing and reports an error; DHCP is the only data source of the Log only mode.
2. FortiGate and Palo Alto: access logs by syslog
Add the device with the IPsec steps of the FortiGate or Palo Alto guide. The IPsec snippet already sets the tunnel address as the syslog server. If you will not use a login page, you can skip the captive portal steps. Then, on the Syslog and access logging card of the device page:
- Leave Syslog format as Vendor default ({name}). If a separate firewall in front of the device sends syslog in another format, choose that format.
- Choose Write to the access log store for Access logging.
- Apply the rule shown in the Block guest access to the collector section on the device and tick the confirmation box.
- Click Save.
When a guest gets a DHCP address, the Last message line on the card should update.
Why is the guest block required?
Syslog messages are not signed. A forged message sent from the guest network to the collector address can look as if it came from the device because of the device's NAT. The rule stops guests from sending messages to the collector. Hotspotly cannot check whether the rule is on the device; the confirmation is your declaration.
What the records contain
| Field | Description |
|---|---|
| Start | The moment the DHCP assign message reached Hotspotly. |
| End | The DHCP release message. |
| Internal IP and MAC | The address the guest device received and its MAC address. |
| Device | Your device, identified by the tunnel address the message came from. |
The timestamp is taken from the moment the message reached Hotspotly, not from the device clock. The records are written to the immutable access log store and covered by the daily seal; see Access logs for details.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The card shows Syslog is only accepted over the VPN tunnel. This device has no tunnel, so access logging cannot be enabled. | The device is connected without a tunnel. | This path does not exist on tunnel-less devices; see the table above. |
| Access logging cannot be enabled until the guest network block is confirmed. | The guest block is not confirmed. | Apply the rule on the device and tick the confirmation box. |
| Access logging can only be enabled on a device with a VPN tunnel. | The device has no VPN tunnel set up. | Set up the tunnel first. |
| The card shows No messages received yet | The device sends no syslog, the tunnel is down, or the syslog collector is not enabled on your account. | Check that the device's syslog server is the tunnel address and that the tunnel is up; if it persists, contact support. |
| Messages arrive but no access log record is created | The mode is Log only or Platform setting, or the messages are not DHCP messages. | Set the mode to Write to the access log store; check that the device is the DHCP server of the guest network and sends DHCP logs. |
| The card shows The device is in Log Only mode: for this vendor, access logs come from syslog DHCP messages. Turn on access logging. | The device is in Log only mode but access logging is not on. | Choose Write to the access log store and save. |
Known limits
- Syslog is only accepted through a VPN tunnel; tunnel-less devices do not have this path.
- The records contain no identity; only internal IP, MAC and time are kept.
- Hotspotly cannot verify that the guest block rule is on the device.
- Hotspot login and logout messages are not written to the access log store; only DHCP messages are.