Re :checking authorization in the duration of connection
NAS sends accounting update packets in periodic times. I want freeradius use this updates and check my online users periodically and send Disconnect packet if user's traffic is above my limit. How can it do this? any document about config ? Eric wrote: Hi, My radius server use ldap server for authorize and authentication.I set an attribute in ldap server that is the check-name in sqlcounter to limit users Input traffic. I want when user traffic reaches to this amount the user become stop but radius checks ldap attributes only at the first of connection not in the middle. How can I set radius server check users traffic with the amount of this attribute in ldap server in the duration of connection? The radius server steps out of the way once authentication and authorization is complete, nor does it have the ability to disconnect a user from a NAS. You need to have the NAS disconnect the user itself when a threshold is reached. This is accomplished by returning a vendor specific attribute specifying the limit for the session which the NAS then maintains. Once the limit on the NAS is reached the NAS terminates the session. You'll have to check your NAS documentation for a traffic limiting parameter. In the other common case of disconnect after a time duration it's handled by computing the session length during authorization and returning attribute 194 with the maximum number of seconds for the connection. This attribute is understood by comon NAS devices and is known variously as Ascend-Maximum-Time, Cisco-Maximum-Time or Lucent-Maximum-Time. You'll need to apply the same logic for data volume.
Radius and NAS can worked in one way. Only NAS send accounts paket to RADIUS. RADIUS CANT send packet to NAS server (if quota user traffic limit exceeded)!!!!!!! ----- Original Message ----- From: Eric To: freeradius-users@lists.freeradius.org Sent: Sunday, May 03, 2009 2:09 PM Subject: Re :checking authorization in the duration of connection NAS sends accounting update packets in periodic times. I want freeradius use this updates and check my online users periodically and send Disconnect packet if user's traffic is above my limit.How can it do this?any document about config ? Eric wrote:Hi,My radius server use ldap server for authorize and authentication.I set an attribute in ldap server that is the check-name in sqlcounter to limit users Input traffic. I want when user traffic reaches to this amount the user become stop but radius checks ldap attributes only at the first of connection not in the middle. How can I set radius server check users traffic with the amount of this attribute in ldap server in the duration of connection? The radius server steps out of the way once authentication and authorization is complete, nor does it have the ability to disconnect a user from a NAS. You need to have the NAS disconnect the user itself when a threshold is reached. This is accomplished by returning a vendor specific attribute specifying the limit for the session which the NAS then maintains. Once the limit on the NAS is reached the NAS terminates the session. You'll have to check your NAS documentation for a traffic limiting parameter. In the other common case of disconnect after a time duration it's handled by computing the session length during authorization and returning attribute 194 with the maximum number of seconds for the connection. This attribute is understood by comon NAS devices and is known variously as Ascend-Maximum-Time, Cisco-Maximum-Time or Lucent-Maximum-Time. You'll need to apply the same logic for data volume. ------------------------------------------------------------------------------ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
You'll need to check this during connection process and you can send info to NAS about traffic limit (if your NAS support this) Волошин Вячеслав wrote:
Radius and NAS can worked in one way. Only NAS send accounts paket to RADIUS. RADIUS CANT send packet to NAS server (if quota user traffic limit exceeded)!!!!!!!
----- Original Message ----- *From:* Eric <mailto:bbahar3@gmail.com> *To:* freeradius-users@lists.freeradius.org <mailto:freeradius-users@lists.freeradius.org> *Sent:* Sunday, May 03, 2009 2:09 PM *Subject:* Re :checking authorization in the duration of connection
NAS sends accounting update packets in periodic times. I want freeradius use this updates and check my online users periodically and send Disconnect packet if user's traffic is above my
limit. How can it do this? any document about config ? Eric wrote:
Hi,
My radius server use ldap server for authorize and authentication.I set an attribute in ldap server that is the check-name in sqlcounter to limit users Input traffic. I want when user traffic reaches to this amount the user become stop but radius checks ldap attributes only at the first of connection not in the middle. How can I set radius server check users traffic with the amount of this attribute in ldap server in the duration of connection?
The radius server steps out of the way once authentication and authorization is complete, nor does it have the ability to disconnect a user from a NAS. You need to have the NAS disconnect the user itself when a threshold is reached. This is accomplished by returning a vendor specific attribute specifying the limit for the session which the NAS then maintains. Once the limit on the NAS is reached the NAS terminates the session. You'll have to check your NAS documentation for a traffic limiting parameter. In the other common case of disconnect after a time duration it's handled by computing the session length during authorization and returning attribute 194 with the maximum number of seconds for the connection. This attribute is understood by comon NAS devices and is known variously as Ascend-Maximum-Time, Cisco-Maximum-Time or Lucent-Maximum-Time. You'll need to apply the same logic for data volume.
------------------------------------------------------------------------ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
------------------------------------------------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
NAS sends accounting update packets in periodic times. I want freeradius use this updates and check my online users periodically and send Disconnect packet if user's traffic is above my limit. How can it do this?
You can write your own module or program that will check you limit and if user is over call radclient and send PoD to your NAS. You are sure that your NAS knows what to do with PoD?
any document about config ?
No, because it's a very bad way of doing things. There are far better (tried and tested) ways of enforcing limits using counters/sqlcounters at login time. If you use them, your user will not be able to go over the limit, as NAS will disconnect him (without any need for external PoD) when the limit is reached. And you don't need interim accounting packets. Ivan Kalik Kalik Informatika ISP
participants (4)
-
Eric -
Ivan Kalik -
Marinko Tarlac -
Волошин Вячеслав