Forum Discussion
Almassud_221797
Cirrus
Dec 05, 2015redirect based on source ip subnet to another website.
hi all,
I am working with irule and it would work find when HTTP::redirect "http://www.google.com[HTTP::uri]" with reject, however I am not even able to save it the way it is below.
when CLIENT...
Amine_Kadimi
MVP
Dec 05, 2015Hi,
Please try with when HTTP_REQUEST instead of when CLIENT_ACCEPTED because the latter fires as soon as the 3-way handshake is finished and before the HTTP GET request. And make sure you have an http profile assigned to the VS
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals DataGroupList] } {
HTTP::redirect "http://www.google.com[HTTP::uri]"
}
}
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
