update replay

Miha Zoubek miha at softnet.si
Mon Feb 13 10:44:25 CET 2012


On 2/13/2012 10:28 AM, Miha Zoubek wrote:
> On 2/13/2012 10:19 AM, Alan Buxey wrote:
>> Hi,
>>> Hi,
>>>
>>> I have set in sql.conf multiple sql instance. I will also include
>>> further different dialup.conf for sql query.
>>>
>>> How can I configure default file in site-avalible as for one softswitch
>>> I do not need this variables to be replied:
>> stick a
>>
>> if (%{NAS-IP-Address} != "192.168.0.1"){
>> }
>>
>> wrapper around it - where that IP address is the one you dont care about
>>
>> alan
>> -
>> List info/subscribe/unsubscribe? See 
>> http://www.freeradius.org/list/users.html
>>
> Thanks for quick replay!
>
> Regards,
> Miha
>
Hi,

I have one problem:


if (%{NAS-IP-Address} != "xxx.xxx.xxx.xxx"){

update reply {
        NAS-IP-Address = "%{NAS-IP-Address}"
        Acct-Multi-Session-Id = "%{Acct-Multi-Session-Id}"
        Acct-Session-Id = "%{Acct-Session-Id}"
        Event-Timestamp = "%{Event-Timestamp}"
        3GPP2-Session-Termination-Capability = 
"%{3GPP2-Session-Termination-Capability}"
        3GPP2-Prepaid-Acct-Quota = "%{3GPP2-Prepaid-Acct-Quota}"
        3GPP2-Prepaid-acct-Capability = "%{3GPP2-Prepaid-acct-Capability}"


#       3GPP2-Session-Termination-Capability = 
"{3GPP2-Session-Termination-Capability}"
#       Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id}
#       3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator}
}
}

I get this:

  Module: Checking post-auth {...} for more modules to load
Bare %{...} is invalid in condition at: %{NAS-IP-Address} != 
"xxx.xxx.xx.xxx")
/usr/local/etc/raddb/sites-enabled/default[450]: Errors parsing 
post-auth section.
[root at newbill sites-available]#

Thanks!

-- 
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o.




More information about the Freeradius-Users mailing list