Community discussions

MikroTik App
 
hrober
newbie
Topic Author
Posts: 41
Joined: Fri Jun 02, 2006 3:32 pm
Location: Brazil

freeradius and simultaneous logins

Fri Nov 16, 2007 8:48 pm

Hi guys,

I'd like know how make to allow only login simulaneous with freeradius and pppoe. I found Simultaneous-Use attribute, but I not found it in freeradius documentation and I not see it in freeradius dictionaries.

thank you.
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Re: freeradius and simultaneous logins

Fri Nov 16, 2007 11:00 pm

In the docs direcotry, is a text file called Simultaneous-Use, I suggest you use it.

You need far more than just a simple attribute name...
 
User avatar
mambotech
Member Candidate
Member Candidate
Posts: 112
Joined: Thu Jun 08, 2006 6:20 pm

Re: freeradius and simultaneous logins

Sun Nov 18, 2007 2:18 pm

 
hrober
newbie
Topic Author
Posts: 41
Joined: Fri Jun 02, 2006 3:32 pm
Location: Brazil

Re: freeradius and simultaneous logins

Mon Nov 19, 2007 7:53 pm

hey guys

thanks for replies.

I solved this problem fallowing this steps:

I edited sql.conf. uncommented this line:
simul_count_query = "SELECT COUNT(*) FROM ${acct_table1} WHERE UserName='%{SQL-User-Name}' AND AcctStopTime = 0"

After, in radcheck:
UserName            attribute                   op          value
foo@foo.com.br    Simultaneous-Use    :=           1 
It's works to me.


Thank you.
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Re: freeradius and simultaneous logins

Thu Nov 22, 2007 12:57 pm

Under high load, when you start missing Radius Accounting Stop messages, you're still going to have issues.

You need to implement and make use of the checkrad script as well...
 
User avatar
otgooneo
Trainer
Trainer
Posts: 587
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: freeradius and simultaneous logins

Tue Dec 13, 2011 8:32 am

Under high load, when you start missing Radius Accounting Stop messages, you're still going to have issues.

You need to implement and make use of the checkrad script as well...
HI savage, It is very old post but if possible could you please post here how to do this. Sometimes my users session still active on radius server "acctstoptime=null". I can`t remove this session. When I try to use disconnect message from radius, mikrotik replies incorrect IP address of session (of course. because no active session on the router itself)