Brandon_Burns_8
May 22, 2007Historic F5 Account
routing to a pool based on protocol
I have have a set of optimization servers that I want to route all http traffic to, and I want all other non-http traffic on port 80 to route to a different pool. This is what I have, but when non-http traffic comes through, my else statement never seems to fire.
Is there a more elegant way to accomplish this?
when CLIENT_ACCEPTED {
TCP::collect 1024
log "collecting"
}
when CLIENT_DATA {
if {([TCP::payload] contains "HTTP") }{
log "Optimization"
pool Optimization_Pool
log "Optimization Pool"
}
else {
log "FW"
pool Firewall_Pool
}
TCP::release
}
Thanks for the help.