Forum Discussion
Rob_13365
Aug 20, 2009Altocumulus
Hi
Spoke to soon about it working a treat. We cannot get the rule to work any more and need some clarification please.
our irule is thus:
when HTTP_REQUEST {
if {[matchclass [IP::client_addr] equals $::UK_Allowed_IP]}{
} else { HTTP::redirect http://redirect.test.com
}
}
The problems is that the irule is redirecting ALL traffic and seems to be ignoring the data group list.
We've tried the data group external file as a string - example:
"138.198.0.0/16",
"141.97.0.0/16",
"145.229.0.0/16",
"145.233.0.0/16",
and as an address - example
network 62.23.0.0/16,
network 62.24.32.0/19,
network 62.24.128.0/17,
network 62.30.0.0/16,
network 62.31.0.0/16,
Neither of these are being picked up. Could it be that the irule is looking for IP addresses rather than networks, so the list isn't matching the query?
Again, any help would be hugely appreciated,
Many thanks!