Forum Discussion
gdoyle
Cirrostratus
May 19, 2016Custom Response Upon Denial with iRule.
We created an irule which denies a user access if they are not using TLS 1.1 or greater (so TLS1.0 or no TLS). We would like a custom message, and although it is in the iRule, that is not the message...
Yann_Desmarest_
Nacreous
May 24, 2016Hi,
You can try this :
when HTTP_REQUEST {
if { not ([SSL::cipher version] starts_with "TLSv1.") } {
HTTP::respond 200 content [ifile get message.html] noserver "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate" Connection Close
}
}
gdoyle
Cirrostratus
May 25, 2016I tried what you suggested, but the connection does not get denied. Instead of goes right to the page as if TLS1.0 is allowed. This is supposed to happen, except it should be redirected to the custom message page. Is something missing from that rule that would redirect it to the ifile or that would fail to call the ifile?
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