I’m trying to use TCP::notify request to implement something like a procedure (“normal” TCL procedures are disabled within iRules). It seems that notify request doesn’t work. I tried with a simple iRule presented below.
when CLIENT_ACCEPTED {
TCP::collect 12
}
when CLIENT_DATA {
if { [TCP::payload 12] contains "x" } {
log local0.debug "Calling notify request"
TCP::notify request
log local0.debug "Called notify request"
}
}
when USER_REQUEST {
log local0.debug "User request triggered"
}
I run this and I send some “xxxxxxxxxxxxxxxxxxxxx” over TCP. Then I look into the logs and there is:
Jun 12 09:12:06 tmm tmm[315]: Rule test_notify_request : Calling notify request
Jun 12 09:12:06 tmm tmm[315]: Rule test_notify_request : Called notify request
And nothing more. The log from USER_REQUEST does not appear. Am I doing something wrong or there is some bug in the Big-IP ?
I’m using BIG-IP 9.4.0 build 517.5
There are no other iRules attached to this virtual server. Or does “notify request” require some specific profile, for example HTTP?