Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Brandon_Burns_8's avatar
Brandon_Burns_8
Historic F5 Account
May 22, 2007

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.

9 Replies

No RepliesBe the first to reply