accounting of data & time

Hi

Have configured RouterOS 2.9 with freeradius and mysql database. I have specified max-session-time for one user. But when that user tries to log in I get an error saying “failed to create the pair: Unknown attribute “Max-Session-Time”” in radius server. Which attribute I can use to specify how much time the user should be logged in. I tried with Acct-Session-Time, session-time, ValidTill in radreply. But none of them seems to work. In radcheck I have given login-time := Any0930-1830 which works perfect. But if I want to give access to users on weekly, monthly, daily etc. which attributes I can use and where ??

I want to do the same thing for total data download/upload.

I know for checking remaining time and data I need to have sql query running periodically. But based on which attributes mikrotik will act and disconnect users if time or data limit expires.

Thanks in advance.

Your rlm_couter module is not setup correctly inside Radius…

Can you please explain me more about how can I go about it ?

thanks

interested with this question .

@ravin

I want to use radius server, but I do not know how to install and “connect” mikrotik to radius.

I have PPPoE users. I want to:

  • Limit speed


  • Limit Bandwidth


  • Decrease the speed after Bandwidth

How to do this?