Forum Discussion
iRule for Reverse Proxy with data-group
Hi,
The below URL to be restricted to the specific set of IP addresses.
https://pbr.corp.com/exp-int-lifetime-mgmt/v1/sit
Also would like to match the complete URI in HTTP rather than the keywords.
but the main URL <https://pbr.corp.com/> should be accessible for Anybody.
Any help much appreciated...Thanks.
Hello,
iRule given in below post should fulfill your requirement.
https://devcentral.f5.com/s/question/0D51T00007Xf8lOSAR/reverse-proxy-irule-to-restrict-the-access-on-ip?page=3
Hope it works!
Mayur
- JamesB12
Altocumulus
Hi , In the URI match can i use complete URL ?
if {[HTTP::uri] eq "pbr.corp.com/exp-int-lifetime-mgmt/v1/sit"}
Thanks.
Hello,
No, you can't use it in that way. You can use statement like given below,
if { [HTTP::host] equals "pbr.corp.com" and [HTTP::uri] equals "/exp-int-lifetime-mgmt/v1/sit" }
Hope it helps!
Mayur
- JamesB12
Altocumulus
Thanks Mayur, Cheers
Recent Discussions
Related Content
* 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