This article describes how to configure a registry-based EPA scan on NetScaler to look for the active device or computer name of an explicit workstation.
When the user types the NetScaler Gateway web address, the NetScaler Gateway checks to see if there are any client-based security policies in place. This is called as pre-authentication policy. If pre-authentication policy is configured on NetScaler Gateway, it checks for the specified condition on the user device. These security checks verify that the user device has necessary security related operating system updates, antivirus protection, and a properly configured firewall.
If the user device fails the security check, the NetScaler Gateway blocks the user from logon. A user who is unable to logon, needs to download the necessary updates, packages, or keys and install them on the user device.
To perform a registry-based scan expression to look for the active device or computer name of an explicit workstation, use either of the following registry keys:
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.This registry key is located at - My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName.
The EPA expression to use on the NetScaler Gateway is:
CLIENT.REG('HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\ComputerName\\\\ActiveComputerName_ComputerName').VALUE== SJCLM02Run the following command from NetScaler CLI:
add aaa preauthenticationpolicy EPA_expression_ActiveComputerName q/CLIENT.REG('HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\ComputerName\\\\ActiveComputerName_ComputerName').VALUE == SJCLM02/ Test
This registry key is located at - My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName.
Run the following command from NetScaler CLI:
add aaa preauthenticationpolicy EPA_expression_ComputerName q/CLIENT.REG('HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\ComputerName\\\\ComputerName_ComputerName').VALUE == SJCLM02/ Test
Alternatively, you can use both expressions to create a single Pre-Authentication Policy and look for both registry keys.