Freeradius Proxy - Framed IP Address Accounting attribute

Alan DeKok aland at deployingradius.com
Mon Aug 28 13:45:36 CEST 2017


On Aug 28, 2017, at 5:27 AM, Byron Jeffery <byronjeffery at cem.org.au> wrote:
> I do have one question though regarding static IP addresses.  I am a little
> confused on the best practice regarding setting up clients as to whether it
> is best to set them up in mac2ip file or entering them into a sql
> database.  If I enter them into the sql database the lease period is set
> when the client successfully gets an IP address, however, how do I define a
> indefinite lease without it being overwritten?

  It's probably best to put static IPs into a separate table.  Then, the logic looks like:


	if (get static IP) {
		we're OK
	}
	else {
		do sqlippool to assign dynamic IP
	}

  Mixing static IPs and dynamic IPs in the same table is problematic.

  Alan DeKok.




More information about the Freeradius-Users mailing list