Forum Discussion
Choi
Nimbostratus
Mar 16, 2021Help iRule
Hi, iRule is not working. Please help me. Redirect action does not work. Data Group Lists EX) Deny - Address 1.1.1.0/24 Accept - Address 2.2.2.0/24 Allow - string test/ealog...
Mar 24, 2021
Hi Choi,
Can you remove [HTTP::path] equals "/" from iRule, and try?
when HTTP_REQUEST {
if { [HTTP::host] equals "vdi.lost.com" && [class match [IP::client_addr] equals Deny] } {
HTTP::respond 200 content [ifile get notice] "Content-type" "text/html"
}
elseif { [HTTP::host] equals "vdi.lost.com" && [class match [IP::client_addr] equals Accept] && not [class match [HTTP::uri] equals Allow] } {
HTTP::redirect "https://vdi.lost.com/test/first/eamain"
}
else {
pool test_pool
}
}
Strings in the datagroup named "Allow" must start with "/".
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