08/27/2024

how to convert following f5 iruler profile to appshape++ script for alteon

rule jsession_pay {

when CLIENT_ACCEPTED {

set add_persist 1

}

when HTTP_RESPONSE {

if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {

log local0. " response set cookie [HTTP::cookie "JSESSIONID"]"

persist add uie [HTTP::cookie "JSESSIONID"]

set add_persist 0

}

}

when HTTP_REQUEST {

if {[HTTP::host] equals "pay.chinaums.com" } {

if { [HTTP::cookie exists "JSESSIONID"] } {

persist uie [HTTP::cookie "JSESSIONID"]

} else {

set jsess [findstr [HTTP::uri] "JSESSIONID" 11 51]

if { $jsess != "" } {

log local0. "request include $jsess"

persist uie $jsess

}

}

}

}

}

2 replies