F5

An F5 acting as a forward proxy for an enterprise network can redirect users to Kasm and block direct access to the interent. This is done using an iRule. In he following example, kasm.company.local is the domain name of the Kasm installation.

when HTTP_REQUEST {
  if { ([HTTP::host] != "kasm.company.local") and ([TCP::local_port] == 80) } {
    HTTP:redirect https://kasm.company.local/#/go?kasm_url=http://[HTTP::host][HTTP::uri]
  }
  if { ([HTTP::host] != "kasm.company.local") and ([TCP::local_port] == 443) } {
    HTTP:redirect https://kasm.company.local/#/go?kasm_url=https://[HTTP::host][HTTP::uri]
  }
}