How to start a session
Dear All, I have implemented freeradius-1.0.5 in Redhat box. And I have some questions about it. It have searched the web but still can't find a clue or i just missed it :(. Also my questions are: 1. How do we start the session? I have send the request to the server and got access_accepted. And as I know the session is start after we send the accounting_request and get response from the server. The problem is how to do that using command prompt? My Nas is Suse box (that should be fine right?). I use this command to send acct_request echo "User-Name= Anna"| radclient 10.1.0.76 acct -x testing123 Is that right? or is there any place I can refer to use the radclient command? 2. Do I need to write external script to run the command? Because I want to use the session time out but seems still not working.(because I don't know how to start the session) 3. Where should I put the acc_type. Is it in server side or nas side? I really hope someone can help me (please...) Thanks a lot in advance Best Regards, Santy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
You must use radtest command type radtest at the command prompt and this will give you hints about how to use it Ernesto Freyre Ramírez Jefe de Operaciones Qnet Soluciones Tecnológicas Jr. Natalio Sánchez 220, Of. 401 - Lima 11 Telf.: (511) 431-6565 Anexo 2245 Fax: (511) 431-7113 Visítenos en: www.qnet.com.pe ----- Original Message ----- From: San To: FreeRadius users mailing list Sent: Friday, January 20, 2006 8:35 AM Subject: How to start a session Dear All, I have implemented freeradius-1.0.5 in Redhat box. And I have some questions about it. It have searched the web but still can't find a clue or i just missed it :(. Also my questions are: 1. How do we start the session? I have send the request to the server and got access_accepted. And as I know the session is start after we send the accounting_request and get response from the server. The problem is how to do that using command prompt? My Nas is Suse box (that should be fine right?). I use this command to send acct_request echo "User-Name= Anna"| radclient 10.1.0.76 acct -x testing123 Is that right? or is there any place I can refer to use the radclient command? 2. Do I need to write external script to run the command? Because I want to use the session time out but seems still not working.(because I don't know how to start the session) 3. Where should I put the acc_type. Is it in server side or nas side? I really hope someone can help me (please...) Thanks a lot in advance Best Regards, Santy __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.20/234 - Release Date: 18/01/2006
Ernesto, thanks a lot for quick reply. I have used the radtest command and I can get access accept successfully. What I don't know understand is the next step (after NAS authenticate and authorize). How can we measure the users usage. Where should I put the attribute session start and how i use the session stop. (what are the command?) Do I need to write external script to calculate this? The scenario is I want to know how big bandwith that used by users during the login time. I really lost in this part. Every documents that I can find only explain until authenticate and authorize between NAS and server. But after that I don't have clue. Hope you can understand and be patient with my very basic(amateur) questions. Best regards santy --- Ernesto Freyre Ramírez <efreyre@isp.qnet.com.pe> wrote:
You must use radtest command
type radtest at the command prompt and this will give you hints about how to use it Ernesto Freyre Ramírez Jefe de Operaciones Qnet Soluciones Tecnológicas Jr. Natalio Sánchez 220, Of. 401 - Lima 11 Telf.: (511) 431-6565 Anexo 2245 Fax: (511) 431-7113
Visítenos en: www.qnet.com.pe
----- Original Message ----- From: San To: FreeRadius users mailing list Sent: Friday, January 20, 2006 8:35 AM Subject: How to start a session
Dear All,
I have implemented freeradius-1.0.5 in Redhat box. And I have some questions about it. It have searched the web but still can't find a clue or i just missed it :(. Also my questions are:
1. How do we start the session? I have send the request to the server and got access_accepted. And as I know the session is start after we send the accounting_request and get response from the server. The problem is how to do that using command prompt? My Nas is Suse box (that should be fine right?).
I use this command to send acct_request echo "User-Name= Anna"| radclient 10.1.0.76 acct -x testing123 Is that right? or is there any place I can refer to use the radclient command?
2. Do I need to write external script to run the command? Because I want to use the session time out but seems still not working.(because I don't know how to start the session)
3. Where should I put the acc_type. Is it in server side or nas side?
I really hope someone can help me (please...) Thanks a lot in advance Best Regards, Santy
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
San <san_sar@yahoo.com> wrote:
How can we measure the users usage. Where should I put the attribute session start and how i use the session stop. (what are the command?)
But the O'Reilly RADIUS book and read it.. The answer to your question is too long to post here.
I really lost in this part. Every documents that I can find only explain until authenticate and authorize between NAS and server. But after that I don't have clue.
Because you appear to be writing a NAS. The documents don't tell you how to implement a NAS. For that, read the RFC's and the O'Reilly book. Alan DeKok.
Hi Alan, thanks a lot for the input. I already have the book now. Santy --- Alan DeKok <aland@ox.org> wrote:
San <san_sar@yahoo.com> wrote:
How can we measure the users usage. Where should I put the attribute session start and how i use the session stop. (what are the command?)
But the O'Reilly RADIUS book and read it.. The answer to your question is too long to post here.
I really lost in this part. Every documents that I can find only explain until authenticate and authorize between NAS and server. But after that I don't have clue.
Because you appear to be writing a NAS. The documents don't tell you how to implement a NAS. For that, read the RFC's and the O'Reilly book.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (3)
-
Alan DeKok -
Ernesto Freyre Ramírez -
San