radpostauth - from client ip
Hello All... 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. Which attribute should I be using to store the same 'from client' that the radius.log is storing? Thanks!
Thank you! That worked perfectly! Steve
-----Original Message----- From: freeradius-users-bounces+sstaples=mnsi.net@lists.freeradius.org [mailto:freeradius-users-bounces+sstaples=mnsi.net@lists.freeradius.org] On Behalf Of Ana Gallardo Gómez Sent: March 23, 2012 2:08 PM To: FreeRadius users mailing list Subject: Re: radpostauth - from client ip
Which attribute should I be using to store the same 'from client' that the radius.log is storing?
I think that what you want is clientname %C
:::::::::::::::::::::::::::::::::::: :: Ana Gallardo Gómez :: ::::::::::::::::::::::::::::::::::::
________________________________
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.1913 / Virus Database: 2114/4889 - Release Date: 03/23/12
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.
participants (3)
-
Alan DeKok -
Ana Gallardo Gómez -
Steven Staples