Forum Discussion
Redirect TCP connection based on hostname
To expand on nitass' answer a little.. you can't do what you're after if it's not HTTP, unless there is something in the TCP payload that you can parse. You'd do that using TCP::collect, and it could get tricky.
An HTTP server only knows what hostname a client used to arrive because the client sends it as an HTTP header. With plain TCP, there is no way to tell.
Secondly, you say you want to "redirect" the client. You can't do that with plain TCP either. HTTP::redirect works by sending an HTTP response telling the client to go to another URL. With plain TCP, there is no way to "redirect" the client. (You could, however, use TCP::collect to make a load balancing decision - e.g. select a different pool.)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com