This article describes how to enable NetScaler Gateway to send RADIUS Accounting Start and Stop messages to a RADIUS server, whenever an ICA session starts and ends.
RADIUS accounting messages are useful in recording user’s connection information like Username, the duration user had an active session, reason for connection termination and so on. This information is sent in the form accounting Start message, when a user successfully logs into NetScaler Gateway vserver and an accounting stop message whenever a user connection terminates. From release 12.0 onwards, NetScaler Gateway can also send another Radius Accounting Start message whenever a user launches an ICA session (XenDesktop or XenApp) and send an accounting Stop message whenever an ICA session terminates. This could be helpful to calculate the time duration each user is using Citrix XA/XD resources. The accounting message contains a unique ID of the user like Username, Domain and Session time to name a few.
Prerequisites
It is assumed that following configuration are in place.
To enable RADIUS accounting support for ICA session on NetScaler Gateway using GUI:
Configuration > NetScaler Gateway > Global Settings > Under Settings, click Change Global Settings > Published Applications tab > ICA RADIUS User Accounting > Drop-down and choose your accounting policy > OK.To enable RADIUS accounting support for ICA session on NetScaler Gateway using CLI:
set vpn parameter -icaUserAccounting Radius_accounting
How to configure Radius Accounting Policy: https://docs.citrix.com/en-us/netscaler-gateway/11/authentication-authorization/configure-radius/ng-radius-user-accounting-tsk.html