Forum Discussion
No HTTP to HTTPS redirection for VPN traffic on basis on client source address also add responed to url if URI not contain any word
Okay, so a few comments:
-
You don't need to set all of those variables since you're not using them
-
You don't need to capture the default pool and use the pool command if that's what is configured in the VIP's properties. You're better off not doing pool management from the iRule if you can help it. Having the pool assigned to the VIP, with a appropriate monitor will affect the state of the VIP itself (if for example you're using GTM upstream). If you don't apply the pool to the VIP and you're doing the pool management in an iRule, then a failed pool will not change the state of the VIP.
-
In your code, if a VPN client is accessing the HTTP VIP and not asking for "/", they'll be redirected to the HTTPS VIP fom the else condition. I'm guessing that's not what you want.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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