Forum Discussion
5 Replies
Sort By
- Harry_175563Nimbostratusto be more descriptive one pool is the bluecoat cacheflow and the other pool is the peerapp device for transparent caching ... the issue is that the traffic gets directed to either of the pool at a given time ... which i want to regulate by creating an irule specifying that anything on port 80 should get redirected to bluecoat cache pool and any other port than port 80 be redirected to the peerapp pool... appreciate help on this
- nitassEmployeeyou can check destination port using TCP::local_port and send to specific pool using pool command. TCP::local_port https://clouddocs.f5.com/api/irules/TCP__local_port.html pool https://clouddocs.f5.com/api/irules/pool.html by the way, why don't you create 2 virtual servers; one is 0.0.0.0:0/0 and the other one is 0.0.0.0:80/0? so, you do not need the irule.
- Harry_175563NimbostratusHi nitass, "by the way, why don't you create 2 virtual servers; one is 0.0.0.0:0/0 and the other one is 0.0.0.0:80/0? so, you do not need the irule." ....... thats what we did but still dont work ...
- nitassEmployeewas there any error in /var/log/ltm? have you tried to capture packet?
Below is the iRule:
when CLIENT_ACCEPTED
{
if { [TCP::local_port] eq "80" } {
pool httppool
} else {
pool otherPool
}
}