Forum Discussion
Jason_19901
Nimbostratus
Apr 05, 2011iRule Help
I am trying to create an iRule to look at the URI and then based on IP address, either allow or deny. Any help would be great!
Thanks
- Joel_Moses
Nimbostratus
Is this something like what you're looking to do? - Jason_19901
Nimbostratus
that link takes me to my post. is that the correct link? - Joel_Moses
Nimbostratus
Sorry 'bout that. Teaches me to watch what window I'm in when cutting and pasting. Try this one: - Jason_19901
Nimbostratus
so that rule will be able to say...if coming from Remote IP, do not allow and if the IP is NOT REMOTE, allow...correct? what is the DEBUG for? what is the HTTP:PATH used for? sorry for the questions.....new to iRules - Michael_Yates
Nimbostratus
Yes, the example that Joel points you to is pretty close to what I understand that you need.when HTTP_REQUEST { if { [[string tolower [HTTP::uri]] starts_with "/website/login.aspx" ] and [IP::addr [IP::client_addr] equals "192.168.1.10"] } { pool matching.pool.name } else { pool nonmatching.pool.name } }
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