Forum Discussion
rabid_gerbil_26
Cirrus
Apr 03, 2019iRule Errors when upgrading to v14.1
All -
We just upgraded our F5 LTM to v14.1 from v11.6.3 successfully. However, now that we are running on v14.1, we are getting a lot of iRule errors in our LTM Logs.
I have edited the iRule nam...
rabid_gerbil_26
Cirrus
Apr 03, 2019For us a solution has been to add "elseif" or "return" statements to each iRule that has a issue. So far the change to add the "elseif" between each "if" statement appears to now work properly.
Hopefully if someone else has this same issue when upgrading their F5 to v14.1+ this will help them.
when HTTP_REQUEST {
if {[HTTP::has_responded]} {return}
Rewrite the User-Agent header value if it's empty
if { [string length [HTTP::header "User-Agent"]] == 0 || not [HTTP::header exists "User- Agent"] }{
Replace the User-Agent header with a default value
HTTP::header replace "User-Agent" "Mozilla/4.0 (compatible; No User Agent Provided)"
}
}
`
or
`when HTTP_REQUEST {
if {[HTTP::has_responded]} {return}
if { [HTTP::uri] equals "/portal/" or [HTTP::uri] equals "/"} {
if {[HTTP::host] starts_with "URL"}{
HTTP::redirect "http://www.URL.org/contact-us/contact-us.aspx"}
elseif {[HTTP::host] starts_with "path"}{
HTTP::redirect "http://www.anotherURL.com/Contact-Us/Contact-Us.aspx"}
elseif {[HTTP::host] starts_with "path1"}{
HTTP::redirect "http://www.anotherURL.com/applications/path1/contact-us.aspx"}
elseif {[HTTP::host] starts_with "path2"}{
HTTP::redirect "http://www.anotherURL.com/applications/path2/Contact-us.aspx"}
elseif {[HTTP::host] starts_with "path3"}{
HTTP::redirect "http://www.anthoerURL.com/applications/path3/contact-us.aspx"}
}
}
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