[RADIATOR] Assigning IP's directly from the Radius server

Heikki Vatiainen hvn at open.com.au
Fri Feb 4 04:57:52 CST 2011


On 02/03/2011 06:55 PM, Michael wrote:

> oh and keep in mind, when you restart radiator, or even maybe reload radiator, the AddressPool may re-mark all ips as available, therefore it may hand out an IP that is already in use.  Maybe someone else can confirm that is correct?

During restart and reload Radiator will run ReclaimQuery. Then it sets
the timer to run ReclaimQuery after every LeaseReclaimInterval which
defaults to one day.

It will only mark those addresses available that had expired after the
ReclaimQuery was last run. In other words, it will not mark all
addresses available unless they had all expired.

When Radiator starts, it will first check that all addresses in
configuration belong to pool and then expired leases get reclaimed. The
log shows something like this:

... Lots of Checking address lines ...
Fri Feb  4 10:52:49 2011: DEBUG: Checking address 192.2.2.99
Fri Feb  4 10:52:49 2011: DEBUG: Query is: 'select STATE from RADPOOL
where YIADDR='192.2.2.99'':
Fri Feb  4 10:52:49 2011: DEBUG: Reclaiming expired leases
Fri Feb  4 10:52:49 2011: DEBUG: do query is: 'update RADPOOL set
STATE=0 where STATE!=0 and EXPIRY < 1296816769':
Fri Feb  4 10:52:49 2011: DEBUG: Finished reading configuration file
'addressallocator.cfg'

1296816769 is the unix timestamp for Fri, 04 Feb 2011 10:52:49 GMT

-- 
Heikki Vatiainen <hvn at open.com.au>

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
NetWare etc.


More information about the radiator mailing list