Forum Discussion
Simon_Knox_1115
Nimbostratus
Jul 08, 2005HELP! hanging iRule
Hi,
I've recently converted from 4.5 to 9.05 and converted my iRules, using OTCU then tweaking so they are correct (at least what I though was correct).
When connecting to a web site...
James_Thomson
Employee
Jul 08, 2005I haven't tested any of this, but I would mention a couple things. You are using tcp::client_port where I think that is going to be the source port. You would want to use tcp::local_port which is the destination port.
Also, you're doing when HTTP_Request when you should probably be using when CLIENT_ACCEPTED. This happens higher in the stack, so it should be more efficient.
Something like this:
when CLIENT_ACCEPTED {
if { [TCP::local_port] equals 531 } {
pool win2003
} elseif { [TCP::local_port] equals 25 } {
pool win2003
} else {
pool win2003
}}
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
