User Accounting (Start Stop)

2002-04-11 Thread Peter Santiago

I have users in a mysql database, set their daily session time at 4 hours
daily.  Somehow the limit is not being enforced... Am I missing something?
A script perhaps?  I'm using portslave as radius client...  Thanks...

_
Peter Santiago
ICQ#: 2890601
More ways to contact me: http://wwp.icq.com/2890601
See more about me: http://web.icq.com/whitepages/about_me?Uin=2890601
Linux user #252132   http://counter.li.org
_


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: user accounting

2002-02-11 Thread Alan DeKok

Peter Santiago [EMAIL PROTECTED] wrote:
 the counter module is running.  where do I set the Default-Session-Time and
 other options?

  The radiusd.conf file?

 Who will send the hangup signal when a user exceeds the given
 session time limit?  I am using portslave as client. Thanks

  No one will send the hangup signal.  Radius doesn't work like that.

  The Session-Timeout attribute will be set.  See the RFC's for what
the attribute does.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



RE: user accounting (one line questions)

2002-02-11 Thread Peter Santiago

Ok... here's what I want to happen... I have just installed portslave and
freeradius Each users of my system which initially be allocated one hour
online time and they can only login once a day... Some users will be
allocated more time... (just like in a BBS) I hope I have made myself
understandable.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alan DeKok
Sent: 05 February 2002 23:57
To: [EMAIL PROTECTED]
Subject: Re: user accounting


Peter Santiago [EMAIL PROTECTED] wrote:
 Really am sorry... I think it's better to post part of my config...

  Which is taken pretty much verbatim from the default config.

 What other files should I be messing with?

  To do what, exactly?  You've been posting one-line questions without
describing what you want to do, what any problem is, or how you expect
things to work.

  Use the default config for the counter module.  Add the counter
module to the 'authorize' section.  Start the server.  Get a NAS to
send the server an accounting packet.  Add the example DEFAULT using
the counter attribute to the 'users' file.

  I don't understand what you're trying to do, or why you're having
problems.

  Alan DeKok.

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: user accounting (one line questions)

2002-02-11 Thread Alan DeKok

Peter Santiago [EMAIL PROTECTED] wrote:
 Ok... here's what I want to happen... I have just installed portslave and
 freeradius Each users of my system which initially be allocated one hour
 online time and they can only login once a day... Some users will be
 allocated more time... (just like in a BBS) I hope I have made myself
 understandable.

  That does help.

  What you want to do is simple.  You'll need two instances of the
counter module, as you're doing two different kinds of counting.  I
would suggest putting the limited users into a group, as this will
simplify the administration of the server.

  You can then use the example 'users' file given in the comments for
the counter module.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: user accounting

2002-02-08 Thread Alan DeKok

Peter Santiago [EMAIL PROTECTED] wrote:
 the counter module is running.  where do I set the Default-Session-Time and
 other options?

  The radiusd.conf file?

 Who will send the hangup signal when a user exceeds the given
 session time limit?  I am using portslave as client. Thanks

  No one will send the hangup signal.  Radius doesn't work like that.

  The Session-Timeout attribute will be set.  See the RFC's for what
the attribute does.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: user accounting

2002-02-05 Thread Kostas Kalevras

On Tue, 5 Feb 2002, Peter Santiago wrote:

 Ok... I've got portslave and freeradius up and running (Thanks for the
 forbearance of those who replied to my posts before).  How do I set per user
 limit(e.g. limited to one hour online time and no multiple logins, twice in
 a row?)  Thanks

 Peter

Take a look at the rlm_counter module and the Simultaneous-Use attribute.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



RE: user accounting

2002-02-05 Thread Kostas Kalevras

On Tue, 5 Feb 2002, Peter Santiago wrote:

 what's the format of the db.counter?


GDBM file. But I don't think you should care about the file format.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



RE: user accounting

2002-02-05 Thread Peter Santiago

Well, let me rephrase the question.  How do I create one? :)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kostas
Kalevras
Sent: 05 February 2002 19:05
To: [EMAIL PROTECTED]
Subject: RE: user accounting


On Tue, 5 Feb 2002, Peter Santiago wrote:

 what's the format of the db.counter?


GDBM file. But I don't think you should care about the file format.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



RE: user accounting

2002-02-05 Thread Kostas Kalevras

On Tue, 5 Feb 2002, Peter Santiago wrote:

 Well, let me rephrase the question.  How do I create one? :)


Simple, you don't. The module will take care of creating and destroying the db
file.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



RE: user accounting

2002-02-05 Thread Peter Santiago

Really am sorry... I think it's better to post part of my config...

 #  This module takes an attribute (count-attribute), which MUST
#  be an 'integer' or 'time' attribute.  It also takes a key,
#  and creates a counter for each unique key.  The count is
#  incremented when accounting packets are received by the
#  server.  The value of the increment is the value of the
#  count-attribute.
#
#  The 'reset' parameter defines when the counters are all reset to
#  zero.  It can be hourly, daily, weekly, or monthly.
#
#  The counter-name is the name of the attribute in the 'users'
#  file used to access that counter.  e.g.
#
#  DEFAULT  Daily-Session-Time  3600, Auth-Type = Reject
#  Reply-Message = You've used up more than one hour today
counter {
filename = ${raddbdir}/db.counter
key = User-Name
count-attribute = Acct-Session-Time
reset = daily
counter-name = Daily-Session-Time
check-name = Max-Daily-Session
allowed-servicetype = Framed-User
cache-size = 5000
}

What other files should I be messing with?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kostas
Kalevras
Sent: 05 February 2002 21:32
To: [EMAIL PROTECTED]
Subject: RE: user accounting


On Tue, 5 Feb 2002, Peter Santiago wrote:

 Well, let me rephrase the question.  How do I create one? :)


Simple, you don't. The module will take care of creating and destroying the
db
file.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: user accounting

2002-02-05 Thread Alan DeKok

Peter Santiago [EMAIL PROTECTED] wrote:
 Really am sorry... I think it's better to post part of my config...

  Which is taken pretty much verbatim from the default config.

 What other files should I be messing with?

  To do what, exactly?  You've been posting one-line questions without
describing what you want to do, what any problem is, or how you expect
things to work.

  Use the default config for the counter module.  Add the counter
module to the 'authorize' section.  Start the server.  Get a NAS to
send the server an accounting packet.  Add the example DEFAULT using
the counter attribute to the 'users' file.

  I don't understand what you're trying to do, or why you're having
problems.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



RE: user accounting (one line questions)

2002-02-05 Thread Peter Santiago

Ok... here's what I want to happen... I have just installed portslave and
freeradius Each users of my system which initially be allocated one hour
online time and they can only login once a day... Some users will be
allocated more time... (just like in a BBS) I hope I have made myself
understandable.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alan DeKok
Sent: 05 February 2002 23:57
To: [EMAIL PROTECTED]
Subject: Re: user accounting


Peter Santiago [EMAIL PROTECTED] wrote:
 Really am sorry... I think it's better to post part of my config...

  Which is taken pretty much verbatim from the default config.

 What other files should I be messing with?

  To do what, exactly?  You've been posting one-line questions without
describing what you want to do, what any problem is, or how you expect
things to work.

  Use the default config for the counter module.  Add the counter
module to the 'authorize' section.  Start the server.  Get a NAS to
send the server an accounting packet.  Add the example DEFAULT using
the counter attribute to the 'users' file.

  I don't understand what you're trying to do, or why you're having
problems.

  Alan DeKok.

-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



user accounting

2002-02-04 Thread Peter Santiago

Ok... I've got portslave and freeradius up and running (Thanks for the
forbearance of those who replied to my posts before).  How do I set per user
limit(e.g. limited to one hour online time and no multiple logins, twice in
a row?)  Thanks

Peter


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html