Forum Discussion
Infinity05_1794
Nimbostratus
Aug 24, 2010Directing traffic based on port
Here's my issue, I have a GTM -> LTM setup and I need to allow both port 80 and 443 (ssl) traffic to a server. I wasn't sure what the best way to do this so I created two VIP on the LTM, one designed for 80 and one designed for 443. Is there a way to load balance traffic based on port without using an iRule or is iRule the way to go?
If that's the only way to do it, does anyone have the code to do it?
Thanks for your time!
- hoolio
Cirrostratus
Hi,when CLIENT_ACCEPTED { Check the requested port switch [TCP::local_port] { 80 - 443 { Do nothing. Default is to allow the request through to the pool } default { Drop the connection drop } } }
- Infinity05_1794
Nimbostratus
Thanks for the response Aaron. I am offloading the SSL on the LTM. I tried your suggestion of creating Virtual server for both 80 and 443 however it seems as if everything routes to the 443 virtual server, no matter what port request is for. On the GTM, I have the pool setup with both virtual servers added, each for their respective service port. I think the problem is with the "Load balancing Method" which is currently set to "Global Availability" because I don't see a better option. We are on version BIGIP 9.4.3.
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