Forum Discussion
kingmuir_152188
Nimbostratus
Apr 28, 2014irule forwarding to gtm address based on port
Is this possible...
Add the following irule to the gtm wide ip address..
when HTTP_REQUEST {
if { [TCP::local_port] equals "9074" } {
HTTP::redirect “test.com; }
}
Th...
Kevin_Stewart
Employee
Apr 28, 2014So i can't write an irule that checks the port coming in and if its 9074 then its sends it to a different url which happens to be a gtm address. Currently the vip etc only services port 80 traffic
Sure you can. The iRule you had in the first post would do that.
when HTTP_REQUEST {
if { [TCP::local_port] equals "9074" } {
HTTP::redirect "http://test.com"
}
}
If the request is for the 9074 local port, redirect the client to http://test.com. GTM would resolve http://test.com to a different IP address.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects