How to set HS Trial user "limit bytes in/out/total" amount?

Hello,

I’m willing to give trial user and need to limit its bytes in/out amount. So I have some dynamic users added with T-00:my-mac-here but without limits set.

Where can I set default User profile for those dynamic users? User profile does not include those options AFAIK.

Regards.

The Hotspot profile only sets the trial user profile: http://wiki.mikrotik.com/wiki/Manual:IP/Hotspot/Profile#Properties

trial-user-profile (string; Default: default) Specifies hotspot user profile for trial users.

User profiles don’t allow you to set by limitations for in and out. Only static local users have that functionality.

Therefore you cannot set that limitation on trial users.

I think you are right and there is no way to limit data for dynamic trial users.

probably,but that’s weird :slight_smile:

Trial user, even if its dynamic, gets its defaults from somewhere. That said, it appears they’re being copied from somewhere and virtually there is no reason to keep their settings immutable. Within the configuration, they seem to be perfectly the same as standard users.

Is there any other way around this then?

Is there any other way around this then?

Nothing built in. But you can roll your own RADIUS solution that tracks MAC addresses to grant them trial uptime like the built in functionality does, and passes on the right attributes to implement transfer limits. It would have to have some sort of database backend, receive the MAC address as the username with a static password, check the database whether that MAC address has any trial time available, and then accept or reject the access request based on previous usage.

How about a script:

  • on login, which reads the data of Dynamic user, deletes it, and adds static one with limitaions instead?
  • on logout, which deletes the static user?

Is this a way to go? have somebody had such script developed? why he hasn’t published it yet?? :slight_smile:

But you can roll your own RADIUS

Interesting, but somewhat overkill for this task.Not a Radius itself, but its config for this usage appears to be complicated (I can’t imagine it at the moment so it is complicated). Anyway, I’ll take a moment to think about it.

Hello again,

that’t probably somewhat stupid question but please someone can enlighten me why generic user profiles are not implemented in trial user access method? Is the trial some hack around or what? Can I really not edit this profile in any way? is it set forever?

I really need such feature and I’m begging for solution without a radius (or at least - without a radius other than MikroTik’s one).

Anyone, please? :slight_smile: