sqlippool - duplicated ip address after freeradius restart

Antonio Modesto modesto at isimples.com.br
Tue Oct 23 12:52:04 CEST 2012


I use radius sqlippool to assign IP address to my users, yesterday, after a
restart on radius service, it started to assign IP address that were
already in use to the users. I'm almost crazy here, I don't know what can
be causing this, we have been using this scheme for at least three months
and this problem never happened.


I have this configuration in sites-enabled/default, post-auth block:

if (Framed-Protocol == PPP) {


and this in the accounting block:


this in the authorize block:

update control {
Pool-Name := "%{sql: SELECT nas_pool_name FROM naspool WHERE

mysql> desc naspool;
| Field | Type | Null | Key | Default | Extra |
| nas_ip | int(10) unsigned | NO | PRI | 0 | |
| nas_pool_name | varchar(30) | YES | | NULL | |

The strange is that most, if not all of the duplicated address, are between
a specific NAS and a random one.

Obs. The expiry-time is set on 1h, and the interim update is set on 10m.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20121023/4d824b0e/attachment.html>

More information about the Freeradius-Users mailing list