Community discussions

MikroTik App
 
ravin
Member Candidate
Member Candidate
Topic Author
Posts: 173
Joined: Mon Jan 29, 2007 3:59 pm
Location: mym

accounting of data & time

Fri May 11, 2007 12:53 pm

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.
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Fri May 11, 2007 2:21 pm

Your rlm_couter module is not setup correctly inside Radius...
 
ravin
Member Candidate
Member Candidate
Topic Author
Posts: 173
Joined: Mon Jan 29, 2007 3:59 pm
Location: mym

Sat May 12, 2007 9:55 am

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

thanks
 
Ghassan
Member Candidate
Member Candidate
Posts: 213
Joined: Mon May 29, 2006 11:08 pm
Location: Lebanon
Contact:

Thu May 17, 2007 11:42 am

interested with this question .
 
sojicmk
Frequent Visitor
Frequent Visitor
Posts: 52
Joined: Fri May 04, 2007 4:32 pm

Fri May 18, 2007 11:51 am

@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?

Who is online

Users browsing this forum: almdandi, gianry, istenik, timoptr and 44 guests