Jer-O
Aug 30, 2018Cirrus
Using iRule, specify a port for a pool that accepts all ports.
For reasons I won't justify here, I have a pool that accepts traffic on all ports, a virtual server receiving traffic on 443 (SSL), and I need an iRule that sets the server port to 1000 for all requests (no if condition; just do it always). I believe port translation should be disabled on the VIP (it currently is, though I've tried it both ways). HTTP_REQUEST is as far as the traffic gets. Traffic never gets to the pool, let alone the desired port. I've tried a dozen different methods, but none of them work. Here's some examples that do not work:
when LB_SELECTED { switch [LB::server port] { 1000 } }
when LB_SELECTED { switch [TCP::server_port] { 1000 } }
I've also tried other events to no avail with variations with and without switch.