Forum Discussion
Eddie_27920
Nimbostratus
Feb 17, 2009Beginner Help with an HTTPS iRule
Hi all,
This is what I thought would work to look at the HTTPS request and use 2 different pools to send the traffic to. Everything I've looked at in DevCentral always has HTTP examples. Can I not look at the url and make a iRule determination?
when HTTPS_REQUEST {
if { [HTTPS::path] contains "chat.mesaaz.gov" }{
pool chat.mesaaz.gov_pool
} elseif { [HTTPS::path] contains "ocs.mesaaz.gov" }{
pool ocs.mesaaz.gov_pool
} else {
pool default_gateway_pool
}
}
Thanks,
Eddie
4 Replies
- The_Bhattman
Nimbostratus
Hi Eddie,
First HTTPS_REQUEST and HTTPS::path doesn't exist (but we all wish it did 😉 ). Second, if you are passing HTTPS traffic through the load balancer instead of offloading the SSL traffic, then everything will be encrypted, except the hostname and port.
If you are offloading SSL traffic on the BIGIP then it's possible to usewhen HTTP_REQUEST { if { [HTTP::path] contains "chat.mesaaz.gov" }{ pool chat.mesaaz.gov_pool } elseif { [HTTP::path] contains "ocs.mesaaz.gov" }{ pool ocs.mesaaz.gov_pool } else { pool default_gateway_pool } }
Because the assumption here is that Client to VIP is SSL and then VIP to load balanced node is HTTP.
Hope that helps
CB - Eddie_27920
Nimbostratus
Hi thanks for your response but the back-end servers are HTTPS.
I wanted to just use one VIP for both pools but the websites are secure and the VIP/POOLS are all set up to be https only traffic.
So I'm hearing that this will not work with a secure website? Is that correct?
Thanks again,
Eddie - The_Bhattman
Nimbostratus
Not in the manner you want control it.
CB - dennypayne
Employee
Posted By cmbhatt on 02/17/2009 7:14 AM
Because the assumption here is that Client to VIP is SSL and then VIP to load balanced node is HTTP.
This will also work if you re-encrypt on the back end, that is, use both a clientssl and a serverssl profile such that LTM is doing the decryption and can read the HTTP request and apply the rule. But the VIP back to the node *can* be SSL as well if you re-encrypt.
Denny
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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