I received a requirement from application gateway team that they need to expose only two URIs to internet consumers and all URIs should be accessable to internal organnization users.
when HTTP_REQUEST {
if { not ([class match [IP::client_addr] equals /Common/private_net]) } {
switch -glob [HTTP::uri] {
"/abc/asdf/morning/*" -
"/abc/asdf/evening/*" {
return
}
default {
drop
return
}
}
}
}
If you want to do it with WAF, you need two WAF policy. One for the internal network, the other for the external network. And you need to set these policies with LTM policy or iRule.