Redirecting TCP/HTTP traffic using single virtual server

Hi All,

Is it possible redirect the connections based on the type of incoming traffic to virtual using iRules? I have a requirement to redirect connections to tcp pool for a tcp traffic and http pool for http traffic using only one virtual server. Please let me know if this is possible.

Thanks

Yes, it is possible use iRules, but I suggest you use Policy instead. Have a look in this post and try to do it. https://devcentral.f5.com/questions/creating-a-redirect-with-local-traffic-policies-v114

I would point out that HTTP is a type of TCP traffic. You will need to either place this on a wildcard virtual server, or be in the unusual position of expecting non HTTP traffic on an HTTP port. You can read about traffic policies here: