Forum Discussion
Naman_65674
Nimbostratus
Sep 02, 2008SSL command on non-SSL VIP
Hello,
I want to create an Irule which will be used by two VIPs, one which uses SSL and the other doesnt. Dont ask why but i want to do something like this:
if { [TCP::local_port] == "443" } {
catch { SSL::disable serverside }
}
but i get the following error when i try to associate the iRule to the Virtual Server:
SSL::disable in rule () requires an associated SERVERSSL or CLIENTSSL profile on the virtual server ()
Can anyone think of a workaround for this? I thought the catch statement would help but was unlucky with that one.
Thanks,
Naman
- Nicolas_Menant
Employee
Hi,class http_methods { "GET” “POST” “HEAD” “PUT” } when CLIENT_ACCEPTED { TCP::collect 5 } when CLIENT_DATA { if { [matchclass [TCP::payload] starts_with $::http_methods] } { SSL::disable } }
- Naman_65674
Nimbostratus
Thanks guys for your help. Aaron I tried your way and it worked great! Just wondering though, does it matter which event i call that in. I am currently doing it in HTTP_REQUEST.. - Colin_Walker_12Historic F5 AccountIt should function all right in HTTP_REQUEST, Naman, but it would be more efficient in CLIENT_ACCEPTED since it would only run once per connection rather than once per request.
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