Forum Discussion
Santhosh
Nimbostratus
for some reason it's not liking the contains with in that. So I used equals but it's failing on redirection where it's throwing a error page.
Apr 06, 2020
Sure, equals is OK.
when HTTP_REQUEST {
if { not [class match [IP::client_addr] equals XYZ_group] } {
HTTP::respond 301 Location "http://example.com/xyz"
}
}
Test it from my lab and it's working fine.
I think your issue is in your data-group. Could you share the next command output (from TMSH)?
list ltm data-group internal XYZ_group
KR,
Dario.