A tool for cleanup stuck RADIUS sessions in UTM5 billing kernel and Cisco ISG Router.
- get active sessions list
rpcf_radius_get_active_sessions
- kill sessions with
traf_last_update_date
>%session_lifetime%
(> 10 min) -rpcf_radius_drop_session
- if failed then restart
utm_radius
daemon and retry - if
IP == 0.0.0.0
then kill session on the ISG-Router via telnetclear sss session user <ip>
-c <config file path>
- path to *.toml
config file
example config - config.toml
docker build -t r_cleaner .
docker run --rm -it -v ${PWD}/config.toml:/config.toml:ro r_cleaner:latest
go mod download
gosec -exclude G106 ./... && build -o r_cleaner cmd/cleaner