Forum Discussion
Supahoopsa_8892
Nimbostratus
Jun 10, 2011IRule not working - sytnax error or something else?
I have tried writing my first iRule to check the url of my site and then depending on which site the user is attempting to access, I then check a list of approved IP addresses.
If t...
Supahoopsa_8892
Nimbostratus
Jun 10, 2011Hi Michael, thanks for your quick feedback.
I've just applied the changes with your recommendations, but it appears we're still having problems with the matchclass aspects. I wanted to state that I created "site_access_list" as a Data Group in the BIGIP UI. It contains multiple Host and Network addresses. Anything I should be considering on that?
Code looks like:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*client*" {
if { !([matchclass [IP::client_addr] equals $::site_access_list]) } {
HTTP::redirect https://site
}
}
}
}
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
