Allocate IP address

Rasool Jalali r_jalali at ymail.com
Sun Oct 19 06:55:44 CEST 2008


hi
Please write a example code for my process :
I have a table that have a couple of tel numbers :
User->Connect->if his/her number is in called_number_table =>give to him a valid IP
User->Connect->if his/her number is NOT in called_number_table => give him an invalid IP(192.168.x.y)

Which section is suitable for my purpose?authentication-authorization or post-auth
PLZ
Thanks.
 



----- Original Message ----
From: "tnt at kalik.net" <tnt at kalik.net>
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Sent: Saturday, October 18, 2008 9:08:30 PM
Subject: Re: Allocate IP address

It does work. Post the whole debug.

Ivan Kalik
Kalik Informatika ISP


Dana 18/10/2008, "Rasool Jalali" <r_jalali at ymail.com> piše:

>hi
>it dose not work.Output : 
>
>+++[control] returns noop
>
>PLZ help me
>
>
>
>----- Original Message ----
>From: "tnt at kalik.net" <tnt at kalik.net>
>To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
>Sent: Saturday, October 18, 2008 3:36:17 PM
>Subject: Re: Allocate IP address
>
>update control { ...
>
>Ivan Kalik
>Kalik Informatika ISP
>
>
>Dana 18/10/2008, "Rasool Jalali" <r_jalali at ymail.com> piše:
>
>>hi all
>>i have a code like this  in auth-post section :
>>if (condition) {
>>    allocate from pool_1
>>}
>>else {
>>    allocate from pool_2
>>}
>>
>>I write this code but it dose not work :
>>
>>if (condition) {
>>    update reply {
>>                            Pool-Name : = pool_1
>>                        }
>>}
>>else {
>>         update reply {
>>                            Pool-Name : = pool_2
>>                        }
>>}
>>
>>PLZ help me
>>tanx.
>>
>>__________________________________________________
>>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
>
>
>__________________________________________________
>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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20081018/efcb2166/attachment.html>


More information about the Freeradius-Users mailing list