Logging of DHCP queries/responses

Alan DeKok aland at deployingradius.com
Sun Oct 4 17:45:07 CEST 2015


On Oct 4, 2015, at 10:55 AM, HernĂ¡n Freschi <hjf at hjf.com.ar> wrote:
> 
> Is there a way to log DHCP queries? I would like to keep a log of
> timestamp, MAC address and assigned IP address for every request.

  You can just write the SQL insert statement directly in "unlang", with a bit of text to wrap it:


	...
	if ("%{sql:INSERT ....}") {
		# insert succeeded
	}

	...

  Alan DeKok.




More information about the Freeradius-Users mailing list