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 29, 2014Well, yes, if the VIP is only configured for port 80, it will ignore any other port traffic. If you need to capture port 9074 requests, then perhaps you need to configure the VIP with a wildcard port and use an iRule to restrict it:
when CLIENT ACCEPTED {
switch [TCP::local_port] {
"80" -
"9074" { return }
default { drop }
}
}
when HTTP_REQUEST {
if { [TCP::local_port] equals "9074" } {
HTTP::redirect "http:://test.com"
}
}
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