rpl_perl and housekeeping
Pshem Kowalczyk
pshem.k at gmail.com
Fri Sep 29 01:02:05 CEST 2006
Hi,
We are building a proxy system using rlm_perl. Proxy is reposible for
IP allocation, attributes rewriting and keeping the session database.
The system works fine if all the NASes (and other proxies) behave
properly (ie they send all the packets they supposed to send etc).
Obviously real situation is a bit worse and sometimes we get stuck
with a non-existent session in our session db (because the 'Stop'
record never arrived). This situation can be easily detected as we
timestamp all db opeartions, so in theory we could expire all
outdated sessions or allocated IPs, but so far I can see only one
option to do that - use an external program.
We're not very keen to do it in the packet-handling functions as some
of the opeartions can be very time consuming, and as a result that
would live the packet without any answer.
Ideally we would like to see an ability to run some functions on
defined time intervals (not only when a packet comes) so the
housekeeping is done then.
I'm not sure if I'm not streetching the applications of rlm_perl a bit
too far, if such functionality existed - that would be great.
Or perhaps is there a different method of doing this?
kind regards
pshemko
More information about the Freeradius-Users
mailing list