Carl_28880
Nov 13, 2012Nimbostratus
V4 to v11 irule assistance required
Hi, could you assist me in the following irule conversion from version 4 to version 11.
Version 4 Irule:
rule test{
if (tcp_content contains "test") {
use pool test_pool
}
else if (tcp_bytes_collected < 50) {
accumulate
}
else {
log "Unrecognised test discarding ${client_addr}"
discard
}
}
This is what i have so far but accumulate was removed in 9.3, can you help me with the correct rewrite to v11.
when CLIENT_DATA {
if { [TCP::payload] contains "test"} {
pool test_pool
}
elseif { [TCP::collect] < 50 } {
TCP::release
accumulate
}
else {
log "Unrecognised test discarding [IP::client_addr]"
discard
}
}
Regards,
Carl