Forum Discussion
kckirwan_49724
Nimbostratus
May 30, 2013Help with iRule to direct traffic to specific pool based on incoming port
I have a rule that is intended to redirect smtp traffic to specific pools based upon the port number for the incoming connection. All of the displays in that are logged to ltm log indicate that the ...
Kevin_Stewart
Employee
May 31, 2013A few things worth mentioning:
1. While it *may* work, there's no indication on DC that the pool command *should* work inside the SERVER_CONNECTED event. I would recommend the CLIENT_ACCEPTED event instead.
2. If you move to the CLIENT_ACCEPTED event, you no longer need the "clientside" notation in the [TCP::local_port] command.
3. You haven't defined "$clip" anywhere.
4. It might make more sense to put your port evaluations into a single if/elseif clause to avoid unnecessary evaluations. The event disable command will stop future event processing, but evaluation will continue inside the current event.
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
