How to access this attribute

Scott Armitage S.P.Armitage at lboro.ac.uk
Thu Oct 17 20:01:09 CEST 2013


On 17 Oct 2013, at 18:58, <A.L.M.Buxey at lboro.ac.uk> wrote:

> Hi,
>> On Thu, Oct 17, 2013 at 03:17:09PM +0100, Jonathan Gazeley wrote:
>>> This is a simple question but I can't find the answer by searching.
>>> In the following rad_recv block, which variable contains the value
>>> "137.222.7.113"? I need to access it in unlang to determine whether
>>> the packet arrived at my RADIUS server from our wireless
>>> controllers, or from another RADIUS server.
>> 
>> It's a virtual attribute - use Packet-Src-IP-Address or
>> Client-IP-Address.
> 
> if you have nicely defined shortnames in your clients.conf you can also use
> 
> %{client:shortname} too ...
> 
> eg 
> 
> if (%{client:shortname} != "NRPS") 
> 	{
> 		blah blah
> 	}
> 
> etc etc


you could shortcut that further 

if (%C != "NRPS")

etc etc


;-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20131017/209b6106/attachment.pgp>


More information about the Freeradius-Users mailing list