Forum Discussion
Stig_Dahl_82658
Nimbostratus
May 08, 2008Finding out ssl::mode on serverside
I use a vip that has serverssl enabled. On one specific pool I should use "SSL::enable serverside" and on the others "SSL::disable serverside".
This works fairly well, but how do I find out which mode I'm actually using? The SSL::mode seems only displaying the clientside, ie I'm always getting true for SSL::mode whatever mode I'm actually using on the serverside.
I could always set my own variable, but I would like to know how the irule has decided.
Regards
Stig
- hoolio
Cirrostratus
What event are you using SSL::mode in? Can you post your full rule or the relevant portions? - Stig_Dahl_82658
Nimbostratus
Mainly I need it for debugging right now. But if there is a check for SSL-mode it would be nice to know what the TMM has selected.if {$debug == 1 } {log local0. "URI=[HTTP::uri], using server [LB::server], SSL=[SSL::mode]"}
- Stig_Dahl_82658
Nimbostratus
Posted By hoolio on 05/08/2008 11:43 PM
- hoolio
Cirrostratus
You can check for a serverssl profile with the PROFILE::exists command. The serverssl profile isn't attached to the VIP until the server side context, sothe first event you can get a valid result in is HTTP_REQUEST_SEND.when HTTP_REQUEST { if {([PROFILE::exists serverssl] == 1) && ([PROFILE::serverssl mode] == 1)} { log local0. "Server SSL enabled" } else { log local0. "Server SSL not enabled" } } when HTTP_REQUEST_SEND { if {([PROFILE::exists serverssl] == 1) && ([PROFILE::serverssl mode] == 1)} { log local0. "Server SSL enabled" } else { log local0. "Server SSL not enabled" } }
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