cancel
Showing results for 
Search instead for 
Did you mean: 

iRule for Reverse Proxy with data-group

JamesB12
Nimbostratus
Nimbostratus

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 4

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
Nimbostratus
Nimbostratus

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
Nimbostratus
Nimbostratus

Thanks Mayur, Cheers