Forum Discussion

JamesB12's avatar
JamesB12
Icon for Altocumulus rankAltocumulus
Jun 05, 2020

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.

4 Replies

  • 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​

  • 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