sqlippool, same username, give different pool IP addresses

Alan DeKok aland at deployingradius.com
Fri Feb 26 14:35:19 CET 2021


On Feb 25, 2021, at 10:32 AM, Alberio Mirko via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> I am using a freeradius instance for assigning PPPoE public ip addresses to our customers.
> 
> Also I created a different ip pool for service purpose, we have a service PPPoE single username for the management of the routers and it is always the same,
> 
> the goal is that when the router is connected to our network it gets a private management IP so we can access and configure it. The management IP should be took from the aforemented pool, dynamically, and freed when the router is configured.

  OK, that should be straightforward.

> So for example pool is:
> 
> 172.16.0.1
> 172.16.0.2
> 172.16.0.3
> 172.16.0.4
> 
> routerA authenticates with PPPoE service account "serviceuser at xyz", get ip 172.16.0.1
> 
> routerB authenticates with PPPoE service account "serviceuser at xyz", get ip 172.16.0.2

  How do you tell the routers apart?  Source IP?  Packet contents?

Hint: look at the debug output.

> Could this can be done using freeradius and its modules?

  Yes.

> At the moment using sqlippool I can only get the same user to get always the same ip, example:
> 
> routerA authenticates with PPPoE service account "serviceuser at xyz", get ip 172.16.0.1
> 
> routerB authenticates with PPPoE service account "serviceuser at xyz", get ip 172.16.0.1

  The debug output will show you what the server is doing, and why.

> I attach the debugfile as intended.

  Which is truncated, and doesn't show the server doing anything.

  Alan DeKok.




More information about the Freeradius-Users mailing list