Community discussions

MikroTik App
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Interim-Update and FreeRadius

Wed Oct 21, 2009 8:18 am

Hi,

I have a freeradius with a routerOs 2.9 hotspot. All go right about authentication. Clients connect to router, hotspot send auth frame and freeradius respond to request.
Now I want to set Interim-Update so I can disconnect clients in some condition (for example account disabled). I set Interim-Update time to 00:03:00. RouterOs send correct acct frame to radius server.
In freeradius acct_users configuration file I have set:
DEFAULT Acct-Status-Type == Interim-Update
Exec-Program-Wait = "myscript.sh"

But radius request drop into timeout request. What do myscript.sh should be return to disconnect clients?

Thanks in advance
v.
 
Smith
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Mon Dec 19, 2005 1:06 pm

Re: Interim-Update and FreeRadius

Sat Oct 24, 2009 12:31 am

You need to send DM (disconnect message).

http://wiki.freeradius.org/Disconnect_Messages
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Re: Interim-Update and FreeRadius

Sat Oct 24, 2009 5:03 pm

You need to send DM (disconnect message).

http://wiki.freeradius.org/Disconnect_Messages
Thanks for tip. What's to send (to client) is user is already good for accounting (aka I don't want disconnect)?


v.
 
Smith
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Mon Dec 19, 2005 1:06 pm

Re: Interim-Update and FreeRadius

Sat Oct 24, 2009 6:05 pm

Nothing.

Who is online

Users browsing this forum: axlerose, BoandlKramer, GoogleOther [Bot], necropastor and 45 guests