matching on IP Address

King, Adam adam.king at
Tue Jun 17 13:10:45 CEST 2008

Yes, the database name is 'radius' and the table name is 'nas_ip'. Confusingly at this testing stage the field in the table is also called 'nas_ip'


Adam King
Network Engineer
adam.king at

InTechnology plc
Support 0845 120 7070
Telephone 01423 850000
Facsimile 01423 858866
-----Original Message-----

From: at [ at] On Behalf Of Ivan Kalik
Sent: 17 June 2008 11:50
To: FreeRadius users mailing list
Subject: Re: matching on IP Address

Is that table in the database sql instance is connecting to?

Ivan Kalik
Kalik Informatika ISP

Dana 17/6/2008, "King, Adam" <adam.king at> piše:

>I am running this query:
>if ("%{sql: SELECT COUNT(nas_ip) FROM `nas_ip` WHERE
>redundant {
>But the if ("%{sql: SELECT COUNT(nas_ip) FROM `nas_ip` WHERE
>nas_ip=''}">0) section always returns false even though the
>database has the 'nas_ip' table containing as the data
>Any ideas?
This is an email from InTechnology plc, Central House, Beckwith Knowle, Harrogate, UK, HG3 1UG. Registered in England 3916586.

The contents of this message may be privileged and confidential. If you have received this message in error, you may not use,

disclose, copy or distribute its content in anyway. Please notify the sender immediately.

All messages are scanned for all viruses.

More information about the Freeradius-Users mailing list