Forum Discussion
hooleylist
Nov 13, 2012Cirrostratus
Hi Carl,
Can you try this?
when CLIENT_ACCEPTED {
Check if the first packet contains "test"
if { [TCP::payload] contains "test"} {
pool test_pool
} elseif { [TCP::payload length] < 50 } {
Collect at least 50 bytes.
This triggers CLIENT_DATA when at least 50 bytes have been collected.
TCP::collect 50
} else {
log "Unrecognised test discarding [IP::client_addr]"
discard
}
}
when CLIENT_DATA {
if { [TCP::payload] contains "test"} {
pool test_pool
Release collected data
TCP::release
} else {
log "Unrecognised test discarding [IP::client_addr]"
discard
}
}
Aaron