radpostauth - from client ip
    Alan DeKok 
    aland at deployingradius.com
       
    Fri Mar 23 20:14:50 CET 2012
    
    
  
Steven Staples wrote:
> I have been trying to figure out why our radius.log file shows the 'from
> client:' IP correctly on accepted logins, but when I'm storing them into my
> database, I get a different IP?
> 
> In my query, I'm using %{NAS-IP-Address}, which is giving me an IP, but not
> the one I'm expecting to see.
  The NAS-IP-Address is something invented by the NAS.  It is NOT the
source IP address of the RADIUS packet.  The NAS-IP-Address can be
*anything*, including 127.0.0.1.
> Which attribute should I be using to store the same 'from client' that the
> radius.log is storing?
  Usually %{Packet-Src-IP-Address}
  Alan DeKok.
    
    
More information about the Freeradius-Users
mailing list