Forum Discussion
esexon_28265
May 29, 2012Nimbostratus
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
- esexon_27963NimbostratusGuys, thanks very much. I have only got around to testing this today. The rule seems to ignore all IP addresses listed in
SS_CMS_Nets and redirects every client to "/"Not sure how to fix this, any ideas?
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