On Thu, Dec 16, 2004 at 09:34:21PM +0100, Alfred H. Dahl wrote:
> >> we have a problem with our IP-POOL.

> >> We run pppoe-servers from Mikrotik, and we assign IP to the client 
> >> using freeradius 0.9.3.

> >> If a Mikrotik pppoe-server stops, or the accounting-stop-packet from 
> >> the pppoe-server does not reach the radius-server, the IP-address is 
> >> not freed from the ip_pool, meaning we get "stale" sessions in the 
> >> IP-Pool.

Now I think about it, there's supposed to be an accounting packet that
comes in when a NAS is shut down... I just don't recall if rlm_ippool
processes it or not. ^_^

> >Depending on the port-numbers you're getting from the pppoe server, this 
> >shouldn't be a problem. If your port numbers are densely populated, 
> >and there are less than the entries in your IP pool, stale entries aren't a 
> >problem.
> 
> what does this mean? If the IP is marked as "active" - will the plugin check 
> to see if the session still exist, and if not, free the IP?

If a new session comes in on a NAS/port combination with an IP address
marked as active, the ippool code frees that IP before it tries to
allocate one. Or at least that's how I remember it, code unseen.

> what happens when all the IP's are marked as active, and the server receives 
> yet another login?

Then you have more ports than IP addresses, and rlm_ippool has issues,
as I said above, or you have exactly the same number of ports as IP
addresses, and the incoming request should clear the old IP address on
that port/IP, and then reassign it again.

-- 
Paul "TBBle" Hampson, on an alternate email client.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to