Jinshu
Oct 22, 2015Cirrus
Exempt http to https url redirection for specific IP addresses in Irule
Hello,
I have a VIP with with address 10.20.20.20 which configured to use SSL. http to https redirection also configured on the F5 so that users will be redirected to if they access http.
now I want to bypass the http redirection for some users with specefic IP addresses (Means users with ip address 10.55.22.22 should access http url and should not use SSL). I have an Irule for this but it is not working. Can anyone help me with this.
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] eq 10.55.22.22] }
{
return
do nothing
}
else {
HTTP::redirect https://[HTTP::host][HTTP::uri] }
}
-Jinshu