Forum Discussion
Hi,
Could you post the updated iRule for this Redirect. I am working for displaying the compatibility for TLS 1.2 instead of TLS 1.0/TLS 1.1
Here is my iRule but. I don't want to direct to some other page, i want to display same warning to update the user about TLS and redirect to the same URI.
when RULE_INIT { set static::refresh_time 15 set static::unsupported_browser_page { System Notification http://www.xxx.com">
System Notification
You are using an unsupported browser. You must use internet explorer 10.0 or higher
Please upgrade or install a supported browser.
You will be redirected to http://www.xxx.com
Wait $static::refresh_time seconds to continue, or click http://www.xxx.com\">here to continue.
} set static::unsupported_cipher_page { System Notification http://www.xxx.com"> System Notification
You are using an browser that does not support TLS version 1.1 or 1.2
please check the security settings of your browser and enable TLS version 1.1 or 1.2
You will be redirected to http://www.xxx.com
Wait $static::refresh_time seconds to continue, or click http://www.xxx.com\">here to continue.
} } when HTTP_REQUEST { switch -glob [ string tolower [HTTP::header User-Agent]] { "msie 10.0" - "msie 9.0" - "msie 8.0" - "msie 7.0" - "msie 6." { HTTP::respond 200 content [subst $static::unsupported_browser_page] Mime-Type "text/html" log local0. "Client IP:[IP::client_addr] has been redirected with user agent :[HTTP::header User-Agent]" } default { if { [SSL::cipher version] equals "TLSv1"}{ HTTP::respond 200 content [subst $static::unsupported_cipher_page] Mime-Type "text/html" log local0. "TLSv1.0 connection detected from [IP::client_addr] for [virtual name]" } } } }