Forum Discussion
pass through client certificate irule
I am currenlty using the irule below for performing SSL passthrough on traffic. Is there any way I could midify this irule so that it only passed through SSL traffic that has a client certificate attached, and offloaded the rest of the traffic on the F5?
when CLIENT_ACCEPTED {
Check if there are members available in the VIP's default pool if {[active_members [LB::server pool]]}{
Disable the client SSL profile so the HTTPS traffic is passed through encrypted to the node SSL::disable
Disable the HTTP profile as we're not going to redirect this request HTTP::disable }
}
when HTTP_REQUEST { The HTTP_REQUEST event is only triggered if the pool members are down and the client SSL and HTTP profiles are left enabled Redirect the client HTTP::redirect https://maintenance.example.com }
Thanks,
Jon
10 Replies
- Chris_Miller
Altostratus
Can you validate my assumptions about what you're trying to do?1. If there are no active members in the default pool, leave client SSL and HTTP profiles enabled and issue a redirect to https://maintenance.sample.com
2. If there are active members in the default pool, disable the client SSL and HTTP profiles.
3. If the client advertises a client cert, pass the traffic through, otherwise, terminate the SSL on the LTM via a client SSL profile?
- jondyke_46152
Nimbostratus
Hi Chris - thanks for the reply. - Chris_Miller
Altostratus
Jon, I updated my previous post with some items I was hoping you could validate. - Chris_Miller
Altostratus
I'm running into an issue with this rule. For us to see whether the client has a cert, we'd need to decrypt the data. So, if we're simply doing pass through, we wouldn't see whether the user had a certificate. - hoolio
Cirrostratus
Chris, I think you're right that this wouldn't be simple. - jondyke_46152
Nimbostratus
Thanks for the responses. - Chris_Miller
Altostratus
APM VE was just released...not sure whether that means reduced pricing, but thought I'd bring it up. :-P - jondyke_46152
Nimbostratus
APM would definately sort the issue but there is no budget for this at the moment. The reason we wish to do this is that there is currenlty a project underway where we are creating a new website which will have multiple services. It is desirable to perform offload on this site to allow compression and other irules to be used. - Chris_Miller
Altostratus
Posted By jondyke on 02/08/2011 05:41 AM - hoolio
Cirrostratus
If there is a client certificate attached re-encrypt the traffic with a server SSL profile and send through to the servers (with the original client certificate included)
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