We want to be able to create rules based on machine name or OS version via UPE e.g.
WSS Agent access method.
WSS Agents running on both Windows and MacOS platforms.
Policy source Management Center / UPE.
Needed custom CPL to apply policies based on host and client IDs. Here's an example policy of a use case based on OS.
Note that these conditions must be added in different Proxy layers!
define variable string x_client_os
<Proxy>
variable.x_client_os("$(x-client-os)")
define condition "wssa macos"
variable.x_client_os.substring="macOS"
end
define condition "wssa windows"
variable.x_client_os.substring="Windows"
end
<Proxy>
ALLOW condition="wssa macOS" url.domain="ifconfig.me"
DENY condition="wssa windows" url.domain="ifconfig.me"