Run user defined scripts on client connect and disconnect

Fajar A. Nugraha fajar at fajar.net
Fri Feb 5 07:09:35 CET 2010


On Fri, Feb 5, 2010 at 12:45 PM, Josh Willmarth <josh at joshwillmarth.com> wrote:
> Hello,
>
> I have a radius server setup with version 2.1.8. Is there a way that I
> can have custom scripts run each time a user successfully connects to
> and disconnects from my radius server? If so, what environment
> variables can be passed to these scripts? Sorry if I missed this in
> the documentation, but I was unable to find the exact answer I am
> looking for.

Try looking at perl, exec, and echo module (/etc/raddb/modules/)
For perl, you should be able to use func_start_accounting and
func_stop_accounting for connect/disconnect events.

-- 
Fajar



More information about the Freeradius-Users mailing list