APM cant login after applying stream profile on iRule

I’m having an issue when I apply a stream on a VS using APM. APM automatically logs out and says “Your session could not be established”. I have other irules applied, I just cant seem to get this work properly with APM. What could be causing this issue? Thanks

Below is the iRule.

when HTTP_REQUEST {

STREAM::disable HTTP::header remove “Accept-Encoding” }

when HTTP_RESPONSE {

if { [HTTP::header value Content-Type] contains “text” } { if { $static::stream_replace_debug } { log local0. “[IP::client_addr]:[TCP::client_port]: MIME type matches. Enabling STREAM profile”} STREAM::expression {@@} Enable stream profile

STREAM::enable

} }

Hi,

I already had this issue. If it’s a pure web access management policy (no vdi, no vpn resource), you should not have this issue.

You can apply a Vs targeting VS configuration as a countermeasure

you create a VS1 (clientside VS) with a stream profile and your irule + a command « virtual vs2_name » to forward traffic to the VS2 that is your existing VS.

You can find examples in the codeshare

Said that, if you have vdi profile, rewrite profile or connectivity profile you may have issues with stream profiles.

hope it helps

Yann