Forum Discussion
touch_93816
May 05, 2011Nimbostratus
Distributing the traffic base on the port
Hi All I am facing some difficulty about generating IRule to distribute the traffic to different destination hosts but I can not make it work and really hope you could help me. ...
hooleylist
May 05, 2011Cirrostratus
Try changing TCP::server_port to TCP::local_port. In the CLIENT_ACCEPTED event, no serverside connection has been established yet, so TCP::server_port isn't a valid command in this context. If you want to check the client's destination port, it's LTM's local port. See the wiki page for a bit more info:
http://devcentral.f5.com/wiki/default.aspx/iRules/tcp__local_port
You could also use forwarding virtual servers to do this without destination address or port translation:
BEST PRACTICE: SOL7229 - Methods of gaining administrative access to nodes through the BIG-IP system
http://support.f5.com/kb/en-us/solutions/public/7000/200/sol7229.html?sr=14231306
Aaron
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