Forum Discussion
SSL Offload and redirect pools
Hi guys,
I have the same issue, my VS on 443 port and pools with 80 port. Can I use the same irule ?
- Kevin_StewartJun 30, 2017Employee
I have the same issue, my VS on 443 port and pools with 80 port. Can I use the same irule ?
Daniel,
You don't even need an iRule in this case. This is just a simple VIP listening on port 443, with a client SSL profile and a pool that points to servers on port 80. The client SSL profile decrypts the SSL on the client side, and the lack of a server SSL profile allows that traffic to flow unencrypted to the servers.
- Daniel_Alves_19Jun 30, 2017Nimbostratus
Ok, I got it, but I have different backend pools with http port, so I need to forward traffic based on URI to those pools. How can I do this with iRule?
- Kevin_StewartJun 30, 2017Employee
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/foo*" { pool foo_pool } "/bar*" { pool bar_pool } "/blah*" { pool blah_pool } default { pool default_pool } } }
- Daniel_Alves_19Jun 30, 2017Nimbostratus
Kevin,
But http_request is a client side event where is encrypted or just it'll be executed after the certificate decrypt the packet?
- Kevin_StewartJun 30, 2017Employee
If you have a client SSL profile applied to the VIP, traffic will be decrypted (OSI layer 6) and allow HTTP events to fire (layer 7).
- Daniel_Alves_19Jun 30, 2017Nimbostratus
Kevin,
it´s working with the irule you gave me, the only strange thing I´ve seen is I need to a / at end of uri or does not work.
Example: https://teste.domain.com/core/ (OK) https://teste.domain.com/core (Doesn´t work)
My servers are using http port and I saw the location field on HTTP response header like below and it´s right, is there a way to change this that you know ?
Location: "http://teste.domain.com/core/ Server: "Microsoft-IIS/8.5"
- Kevin_StewartJun 30, 2017Employee
Did you use the -glob option? That allows you to add a wildcard to the end of the pattern, so
switch -glob [HTTP::uri] { "/core*" { pool core_pool } }
should match "/core" and "/core/", and "/core/foo", etc.
- Daniel_Alves_19Jun 30, 2017Nimbostratus
Yes, I am using wildcard, but I've seen that without final slash the server respond http://teste.domain.com, the http header location field has this value and doesn't connect.
- Kevin_StewartJun 30, 2017Employee
I think you're suggesting that traffic gets to the correct pool member, but that the server itself requires the trailing /.
Is that correct?
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