Forum Discussion
Sergio000_19532
Nimbostratus
May 04, 2018Irule getting too many redirects
Hi, I am trying to make an Irule redirect to a URL if the tls version is 1 or 1.1, but I am getting too many redirects in the browser, I also try to insert a cookie so the redirect only appears one t...
Sergio000_19532
Nimbostratus
May 08, 2018Hi, I solved the problem this is the final Irule, I do the redirect with HTML code. thx to all.
when RULE_INIT {
set static::notification_page {
}
}
when CLIENTSSL_HANDSHAKE {
Determinar si la version ssl es insegura
if { ([SSL::cipher version] eq "TLSv1" ) or
([SSL::cipher version] eq "TLSv1.1" ) } then {
log local0. "Cliente [IP::client_addr]:[TCP::client_port] usa [SSL::cipher version]"
set count 1
} else {
set count 0
}
}
when HTTP_REQUEST {
if { (not [HTTP::cookie exists NotificationDone]) and $count == 1 } {
HTTP::respond 200 content [subst $static::notification_page] Mime-Type "text/html" Set-Cookie "NotificationDone=1; path=/; domain=.[HTTP::host]"
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
