Forum Discussion
hoolio
Cirrostratus
May 24, 2007SSL profile options
Can you set the nonssl option for a client SSL profile in a rule? I'd like to be able to give a few customers a rule to use on port 0 VIPs and not have to force them to enable this option on each client SSL profile if it's not already.
Also, what is SSL::mode used for? I see it in the ASM_clientside rule:
if {([PROFILE::exists clientssl] == 1) && ([SSL::mode] == 1)}
I've also seen a reference to:
PROFILE::clientssl mode
And:
PROFILE::serverssl mode
I checked the wiki but didn't find any info on these commands.
Can someone provide more detail on these options? What does SSL::mode indicate? What other attributes are there for PROFILE::clientssl|serverssl? Can the commands be used to set the values or only retrieve them?
Thanks,
Aaron
- hoolio
Cirrostratus
So it looks like the nonssl option on the client SSL profile is the same as using SSL::disable in a rule. You have to be able to determine when to disable SSL though. - Tom_Kivlin_9335
Nimbostratus
Aaron, - hoolio
Cirrostratus
Hi Tom,when HTTP_REQUEST { Check if request matches the criteria to disable server-side SSL if { [HTTP::uri] starts_with "/clear"}{ disable SSL on the serverside context SSL::disable serverside select the http pool pool http_pool } else { default is to use server-side SSL and the https pool pool https_pool } }
- Tom_Kivlin_9335
Nimbostratus
Aaron,when HTTP_REQUEST { SSL::disable serverside if {[HTTP::method] equals POST} { SSL::enable serverside pool https_pool } }
- hoolio
Cirrostratus
That would work as far as the SSL goes, assuming you have the http_pool as the default pool on the virtual server. Here's another option that works based on the idea that you have SSL enabled on the serverside by default with the server SSL profile on the virtual server:when HTTP_REQUEST { if {not ([HTTP::method] equals "POST")} { SSL::disable serverside pool http_pool } default action is to use server SSL and the default https_pool on the vip }
- Tom_Kivlin_9335
Nimbostratus
Awesome! Thanks very much - that is just what I'm after. - F5Rookie_28647
Nimbostratus
Aaron, since you seem to be will versed in the SSL configuration maybe you can help me in my situation.when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "login.mycompany.com"} { pool LOGIN } elseif { [string tolower [HTTP::host]] equals "secure.mycompany.com"} { pool SECURE } else { pool WebServer } }
- F5Rookie_28647
Nimbostratus
Aaron, thanks for your quick reply.
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