LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-09-2012, 07:34 AM   #1
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Rep: Reputation: Disabled
what and how should i use counter on freeradius in this config (login-time)


Hi
problem : it's not giving a "Session-Timeout"

I'm installed free radius and connect it to squid and put this config on users file it work's fine with squid but it's not giving a "Session-Timeout" , after searching a lot i found that i should use a counter but i couldn't understand what kind of counter should i use(dayly, monthy, ...) an how ?
I'm really beginner on freeradius

Code:
"alice" Cleartext-Password := "passme", login-time := "Sa0200-0209"
        Reply-Message = "Hello, %{User-Name}"
 
Old 06-09-2012, 10:02 AM   #2
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Original Poster
Rep: Reputation: Disabled
i changed the configuration to somthing different its not working . i think i miss somthing here :


problem : daily counter not working
i have squid connected to freeradius and
i did this config on users file of freeradius
Code:
"alice" Cleartext-Password := "passme", Max-Daily-Session :="100"
        Reply-Message = "Hello, %{User-Name}"
and uncomment daily in accounting and authorize section of sites-enabled/default file of freeradius and uncommented the daily in instantiate section of radiusd.conf and added this to moduls/counter
Code:
counter daily {
        filename = ${db_dir}/db.daily
        key = User-Name
        count-attribute = Acct-Session-Time
        reset = daily
        counter-name = Daily-Session-Time
        check-name = Max-Daily-Session
        reply-name = Session-Timeout
        allowed-servicetype = Framed-User
        cache-size = 5000
        return-attribute = Session-Timeout
        }
but after 100 second the user doesn't disconnect and noting wrote in output of radius -X command

any help is really appreciated
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius & counter.conf space_mokey Linux - Server 0 05-13-2010 02:15 PM
login counter oppiet30 Linux - General 2 11-26-2008 08:07 PM
How do I reset the login counter mccartjd Linux - Newbie 3 05-05-2008 11:00 AM
Login in freeradius ashlyjay Linux - Newbie 0 03-19-2007 07:54 PM
FreeRadius failed to login multiple connection nasirsa Linux - Software 0 04-17-2004 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration