Mailing List Archive

radius accounting - problem with prepaid users
We have some users who use prepaid cards in order to connect to our access servers.

This means that when they connect, a start record is stored in our database and when they
disconnect, a stop record is stored. The time between these 2 records is subtructed from
the card's total time, so the next time the user connects, the card starts with less time.

The problem is when the access server is powered off, so there is no stop record sent.

One solution would be to send accounting updates every x mins, but we don't want that for
all our dialup users. Is there a way we can configure it per-user (through aaa)?

Any other idea on how we can solve such a problem?


--
***********************************
Chatzithomaoglou Anastasios
Network Design & Operations Center
FORTHnet S.A.
<achatz@forthnet.gr>
***********************************
RE: radius accounting - problem with prepaid users [ In reply to ]
Anatassios,

An account record can be sent when the system is restarted.
This record should be used to indicate that all "OPEN".
(ie STARTs with no stop RECORDS) should be closed for that
NAS IP address.

This is successfully used at other SP.

Regards,
Darryl Sladden
VGDBU Product Manager
dsladden@cisco.com
Phone: 408-525-8970
Cell: 408-390-3781
Cisco Systems Inc.

> -----Original Message-----
> From: cisco-nas-bounces@puck.nether.net
> [mailto:cisco-nas-bounces@puck.nether.net] On Behalf Of
> Anastassios Chatzithomaoglou
> Sent: Sunday, September 14, 2003 10:39 PM
> To: cisco-nas@puck.nether.net
> Subject: [cisco-nas] radius accounting - problem with prepaid users
>
>
> We have some users who use prepaid cards in order to connect
> to our access servers.
>
> This means that when they connect, a start record is stored
> in our database and when they
> disconnect, a stop record is stored. The time between these 2
> records is subtructed from
> the card's total time, so the next time the user connects,
> the card starts with less time.
>
> The problem is when the access server is powered off, so
> there is no stop record sent.
>
> One solution would be to send accounting updates every x
> mins, but we don't want that for
> all our dialup users. Is there a way we can configure it
> per-user (through aaa)?
>
> Any other idea on how we can solve such a problem?
>
>
> --
> ***********************************
> Chatzithomaoglou Anastasios
> Network Design & Operations Center
> FORTHnet S.A.
> <achatz@forthnet.gr>
> ***********************************
>
>
> _______________________________________________
> cisco-nas mailing list
> cisco-nas@puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco> -nas
>
Re: radius accounting - problem with prepaid users [ In reply to ]
You can try enabling periodic accounting on a per-user basis:

Cisco-AVPair = "lcp:acct-interval=<n>"

or

Acct-Interim-Interval = <n>

The latter attribute is defined in RFC2869.

You could also clear all users off a NAS before you reload or power it
off. If you configure system accounting, the NAS will also send an
Accounting-Off record to the RADIUS server when you reload the
box. This indicates to the server that all open accounting sessions on
that NAS should be closed. An Accounting-On record is also sent when
the NAS boots up so that the RADIUS server can close all open sessions
on the NAS if the Accounting-Off was never sent (like if the NAS was
powered off or crashed).

Dennis

Anastassios Chatzithomaoglou [achatz@forthnet.gr] wrote:
> We have some users who use prepaid cards in order to connect to our access
> servers.
>
> This means that when they connect, a start record is stored in our database
> and when they disconnect, a stop record is stored. The time between these 2
> records is subtructed from the card's total time, so the next time the user
> connects, the card starts with less time.
>
> The problem is when the access server is powered off, so there is no stop
> record sent.
>
> One solution would be to send accounting updates every x mins, but we don't
> want that for all our dialup users. Is there a way we can configure it
> per-user (through aaa)?
>
> Any other idea on how we can solve such a problem?
>
>
> --
> ***********************************
> Chatzithomaoglou Anastasios
> Network Design & Operations Center
> FORTHnet S.A.
> <achatz@forthnet.gr>
> ***********************************
>
>
> _______________________________________________
> cisco-nas mailing list
> cisco-nas@puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nas
Re: radius accounting - problem with prepaid users [ In reply to ]
Assuming a user record in the users file similar like this:

test Auth-Type = Local, Password = "test"
Service-Type = Framed-User,
Cisco-AVPair = "ip:dns-servers=x.x.x.x x.x.x.x",
Framed-Protocol = PPP,
Framed-Route = "x.x.x.x/xx xx.x.x.x 1",
Framed-IP-Address = x.x.x.x,
Framed-IP-Netmask = 255.255.255.255

Add for your prepaid users simply following line

Acct-Interim-Interval = 300,

This will tell the cisco to send every 5min a Alive record for this user.

hth,
Eric

Mit freundlichem Gruße,
Eric Thiele
-----------------------------------------------
TAL.DE Klaus Internet Service GmbH eric@tal.de
Robertstrasse 6 * D-42107 Wuppertal, Germany
Tel: 0202 / 495-0 * Fax: 0202 / 495-399
-----------------------------------------------



> We have some users who use prepaid cards in order to connect to our access servers.
>
> This means that when they connect, a start record is stored in our database and when they
> disconnect, a stop record is stored. The time between these 2 records is subtructed from
> the card's total time, so the next time the user connects, the card starts with less time.
>
> The problem is when the access server is powered off, so there is no stop record sent.
>
> One solution would be to send accounting updates every x mins, but we don't want that for
> all our dialup users. Is there a way we can configure it per-user (through aaa)?
>
> Any other idea on how we can solve such a problem?
>
>
> --
> ***********************************
> Chatzithomaoglou Anastasios
> Network Design & Operations Center
> FORTHnet S.A.
> <achatz@forthnet.gr>
> ***********************************