2 questions about user manager

Hello team!!

I am trying to deploy for first time hotspot with user manager
I have already installed the package and all configured and working.

First question: how can I set a user to use a total of 1 hours every day?
Second question: how can I access to user manager portal? I have tried with /um and /userman

My scenario:
RouterOS 7.18.2
I created a new virtual WiFi interface with the default security profile (without password)
I set the IP address 192.168.222.1/24 for this interface and followed the hotspot wizard in winbox
The IP address of the Mikrotik on the LAN is 192.168.111.1

This is my user manager config:

/user-manager profile
add name=perfil1 name-for-users=perfil1 validity=unlimited
/user-manager user group
add attributes=Mikrotik-Group:1M inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=group1 outer-auths=pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
/user-manager user
add attributes=Mikrotik-Rate-Limit:10M group=group1 name=usuario1
/user-manager
set certificate=*0 enabled=yes
/user-manager router
add address=192.168.111.1 name=router1

I can use “Usuario1”, connected to the new SSID and I have 10 Mbps max.
Which IP address should I use to access user manager portal? I need to connect from my lan or from the hotspot wifi?

Thanks in advance.
Regards,
Damián

Firstly, suggest reconfiguring the address used for connection to the router as RADIUS client to 172.0.0.1 .

On to your questions:

  1. I think that could be achieved through /user-manager limitation by setting up uptime limit
  2. Should be possible to access it with http://ip.of.the.router/um/ but the WWW service should be enabled:
/ip service
set www enabled=yes

Thanks for your answer!

I dont have anything like “uptime limit” in “limitation”:

[damian@Mikrotik Damian] /user-manager/limitation> add 
comment     copy-from     download-limit     name     rate-limit-...     reset-counters-interval     reset-counters-start-time     transfer-limit     upload-limit     uptime-limit

You were right with the service www, this was disabled, when I enabled this, I could access to the portal. Now, I dont know which credentials I need to use to manage users, anyway, I will only need this, if there is something that cannot be done in Winbox.

Thanks in advance.
Regards,
Damián

There is a parameter uptime-limit at the end if you look at the terminal snippet you posted. You configure and apply it to a profile through /user-manager profile-limitation

I think that since v7 it is only accessible via Winbox or Webfig, so there shouldn’t be anything that cannot be done through Winbox. If there were such, there would be certainly a command for it which could be applied through the CLI

You are right again, sorry, I dont know why I didnt see this.

Now I have 2 new questions, sorry:

  1. I see that in the Profile Limitation, by default, all the days are selected, from_time is 00:00:00 and till_time is 23:59:59. This means that the user will have 1 hour all the days? This is what I need

  2. I see that I can select a “profile” and a “limitation” in a “profile_limitation”, but I didnt see where can I assign this setting to a created user. If I add batch users, I can select this profile, but once the user is created I dont understand how it this linked. The link is maybe using the field “Name for users” in the profile? How can I link this limitation to a user?

Thanks
Regards,
Damián

  1. Correct
  2. A user and a profile can be combined in the menu /user-manager user-profile and that way a limitation can be applied to a user

TheCat12, thank you!!
This is right, but still this isnt working for me.

I set the time to 2 minutes instead 1 hour, just for testing.
I can connect with “usuario1”, the user has only 10 Mbps, but after 2 minutes, Internet is still accessible.
Any idea?

This is my configuration:

/user-manager limitation
add name=1hora uptime-limit=2m
/user-manager profile
add name=perfil1hora name-for-users="Perfil 1 hora" validity=unlimited
/user-manager user group
add attributes=Mikrotik-Group:1M inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=group1 outer-auths=pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
/user-manager user
add attributes=Mikrotik-Rate-Limit:10M group=group1 name=usuario1
/user-manager
set certificate=*0 enabled=yes
/user-manager profile-limitation
add limitation=1hora profile=perfil1hora
/user-manager router
add address=127.0.0.1 name=router1
/user-manager user-profile
add profile=perfil1hora user=*2

Thanks in advance.
Regards,
Damián

An asterisk and a number following it always means error (removed, renamed, etc. entity), so check/remove the non-existent certificate from /user-manager and check the user in the user-profile section

Hello!!
Thanks for your answer!!

I used

set certificate=“”

and this now appears as “none”
However, when I try to change the user in the user-profile, winbox show me the following error:
Couldn't change User Profile <usuario1> feature is not implemented (3)
I try with a new user, but I get still the same error.

Any idea?
Thanks in advance.
Regards,
Damián

That table stores the associations of the m:n relation between users and profiles. You cannot edit the associations, what you can do is to remove the old unwanted entry / the entry with the error, and to add a new correct entry for the association.

Thanks CGGXANNX!
Stil does not work.
Before, I realiced that in the user-profile section (In the winbox gui), the user appeared as “unknow”
After I deleted this and added the user-profile again, this seems to be solved, however, the user can still navigate without this limitation.
This is the config now:

/user-manager limitation
add name=1hora uptime-limit=2m
/user-manager profile
add name=perfil1hora name-for-users="Perfil 1 hora" validity=unlimited
/user-manager user group
add attributes=Mikrotik-Group:1M inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=group1 outer-auths=pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
/user-manager user
add attributes=Mikrotik-Rate-Limit:10M group=group1 name=usuario1
add group=group1 name=usuario2
/user-manager
set enabled=yes
/user-manager profile-limitation
add limitation=1hora profile=perfil1hora
/user-manager router
add address=127.0.0.1 name=router1
/user-manager user-profile
add profile=perfil1hora user=usuario1

Any idea?
Thanks in advance.
Regards,
Damián

Make sure that use-profiles is turned on:

/user-manager set enabled=yes use-profiles=yes

Thanks CGGXANNX!

Still not working
The “Use Profiles” check was disabled, I enabled this and still the same issue.
I did another export and saw again: set certificate=*0
Again, changed this to set certificate=“”
After this, I removed the cookies in Hotspot, and deleted active sessions in user manager.
Now when I try to access, I get:
“RADIUS server is not responding”

Thy is this so complicated?
Any idea?

Thanks in advance.
Regards,
Damián

Because probably the certificate has to be removed from the /radius menu too. After you do that, would you export the whole config if it still doesn’t work?

/export file=anynameyouwish (minus sensitive info like serial numbers, keys, public IPs, etc.)

20250626.rsc (9.8 KB)

In the radius menu the certificate option is grayed and disabled.
Here is attached the export

Thanks in advance.
Regards,
Damián

Change of concept - add the Session-Timeout attribute to the user group in seconds and scratch the idea with limitations

This could be a good idea.
However, I am still getting “RADIUS server is not responding”
Tried to reboot the Mikrotik, but the same
This does not makes sense to me that this error started when I deleted the cookies and the active sessions.

Any idea?
Thanks
Damián

That probably happened after enabling “Use Profiles” in the UM settings, which I don’t think is needed

That probably happened after enabling “Use Profiles” in the UM settings

You are right, disabling again the “Use Profiles”, I could login again and after 30 seconds, I am logged out (I set 30 seconds in the Session-timeout, in the group)
Now, if I login again, I can use again Internet for 30 seconds.
How can I fix this?
How to accomplish that a user can only use Internet for 1 hour each day?

Thanks in advance.
Regards,
Damián

Sorry, I was confused by the RADIUS server not connecting problem and the missing certificate, and blamed the limitation when it is the only way to limit the session on a daily basis, so back to the original concept: add a limitation, connect it to a profile via profile limitation