For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

esexon_28265's avatar
esexon_28265
Icon for Nimbostratus rankNimbostratus
May 29, 2012

Help with IRule

Can you please help with the following iRule which is not working at all.

 

 

 

For client IPs that do NOT match SS_CMS_Nets and hit the URI specified in SS_CMS_URLs redirect back to /

 

 

 

when HTTP_REQUEST {

 

if { not ([matchclass [IP::client_addr] equals $::SS_CMS_Nets]) and ([string tolower [HTTP::uri]] contains $::SS_CMS_URLs) } {

 

HTTP::redirect "/"

 

}

 

}

 

 

 

 

 

SS_CMS_Nets

 

192.168.1.0/255.255.255.0

 

 

 

SS_CMS_URLs

 

"/server2"

 

 

 

 

Many thanks,

 

esexon

 

11 Replies