Forum Discussion
Ryan_Rowe_79249
Nimbostratus
Sep 24, 2009Rule to use different SSL Profile
I need a rule that when someone comes in to point to a different SSL Cert profile (ie. address a,b,c use serverSSL; all others use client SSL)...would that be possible to do in 1 rules or should I create 2 Virtual Servers with 2 different profiles and put an IP restriction rule in?
- L4L7_53191
Nimbostratus
Here's an example that may help (from the SSL::enable command on the iRules wiki page):when CLIENT_ACCEPTED { if { !([IP::addr [IP::client_addr] eq 10.0.0.0/8]) } { SSL::enable TCP::release set sslenable 0 }
- Ryan_Rowe_79249
Nimbostratus
So I am guessing that this would be what I am looking for:when CLIENT_ACCEPTED { if {[matchclass [IP::client_addr] equals $::] }{ SSL::enable clientside SSL::disable serverside } else { SSL::disable clientside SSL::enable serverside } }
- L4L7_53191
Nimbostratus
Yep, that looks about right.
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