How to access this attribute

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Thu Oct 17 19:58:15 CEST 2013


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

alan


More information about the Freeradius-Users mailing list