Hi,
I’m kinda new to F5 and the LTM module so I’m trying to wrap my head around iRules and policies. I’ve got a task I can’t seem to solve however easy it might be. I tried searching the existing topics but without luck.
A webserver with two nodes is listening on port 80 and 443. When http is accessed the F5 should redirect the connection to https. I can do this with the inbuilt irule.
The pools behind the HTTPS virtual server are listening on 8443 so the connection is like this: https:// xy.com/ goes to POOL_SOMETHING:8443.
And here comes the twist. When the URL contains this path: /auth then instead of 8443 the connection should be redirected to 9443. Like this: https:// xy.com/auth goes to POOL_SOMETHING:9443
What I thought would be a good solution is to create two pools. POOL_SOMETHING:8443 and POOL_SOMETHING:9443. Then, I would create an LTM policy where the following conditions would be enabled:
HTTP URI path is any of /auth THEN Forward traffic to pool POOL_SOMETHING:9443
Is this a reasonable solution?
If not, can you please suggest something?
Thanks in advance!