Setup guide

routes may be specified separated with commas
limit-uptime (time; default: 0s) - total uptime limit for user (pre-paid time)
0s - no limit
limit-bytes-in (integer; default: 0) - maximum amount of bytes user can transmit
0 - no limit
limit-bytes-out (integer; default: 0) - maximum amount of bytes user can receive
0 - no limit
uptime (read-only: time) - total time user has been logged in
bytes-in (read-only: integer) - total amount of bytes received from user
bytes-out (read-only: integer) - total amount of bytes sent to user
packets-in (read-only: integer) - total amount of packets received from user
packets-in (read-only: integer) - total amount of packets sent to user
Notes
If auth-mac property is enabled, clients' MAC addresses (written with CAPITAL letters) can be
used as usernames. If auth-mac-password is set to no, there should be no password for that users.
Otherwise, the password should be equal to the username. When a client is connecting, his/her
MAC address is checked first. If there is a user with that MAC address, the client is authenticated as
this user. If there is no match, client is asked for username and password.
The address property is used only for dhcp-pool login method to tell it DHCP server. If a user
already has a permanent IP address (as it is happening when enabled-address method is used), this
property will just be ignored.
The byte limits are total limits for each user (not for each session as at /ip hotspot active). So, if a
user has already downloaded something, then session limit will show the total limit - (minus)
already downloaded. For example, if download limit for a user is 100MB and the user has already
downloaded 30MB, then session download limit after login at /ip hotspot active will be 100MB -
30MB = 70MB.
Should a user reach his/her limits (bytes-in >= limit-bytes-in or bytes-out >= limit-bytes-out),
he/she will not be able to log in anymore.
The statistics is updated if a user is authenticated via local user database each time he/she logs out.
It means, that if a user is currently logged in, then the statistics will not show current total values.
Use /ip hotspot active submenu to view the statistics on the current user sessions.
Example
To add user Ex with password Ex that is allowed to log in only with 01:23:45:67:89:AB MAC
address and is limited to 1 hour of work:
[admin@Wandy] ip hotspot user> add name=Ex password=Ex \
\... mac-address=01:23:45:67:89:AB limit-uptime=1h
[admin@Wandy] ip hotspot user> print
Flags: X - disabled
# NAME ADDRESS MAC-ADDRESS PROFILE UPTIME
0 Ex 0.0.0.0 01:23:45:67:89:AB default 0s
[admin@Wandy] ip hotspot user> print detail
Flags: X - disabled
0 name="Ex" password="Ex" address=0.0.0.0 mac-address=01:23:45:67:89:AB
profile=default routes="" limit-uptime=1h limit-bytes-in=0
limit-bytes-out=0 uptime=0s bytes-in=0 bytes-out=0 packets-in=0
packets-out=0
[admin@Wandy] ip hotspot user>