Forum Discussion
Cindy_127211
Nimbostratus
Oct 27, 2005Matchclass for 'Address' Data Group Doesn't seem to work
The matchclass statement in the following rule doesn't seem to work. It never appears to match or not match any of the client IP addresses that are sent. What am I doing wrong?
class internal_net {
network 10.0.0.0 mask 255.0.0.0
network 64.57.32.0 mask 255.255.240.0
network 65.167.38.0 mask 255.255.255.0
network 127.0.0.0 mask 255.0.0.0
network 192.168.0.0 mask 255.255.0.0
network 208.21.56.0 mask 255.255.255.0
network 216.230.48.0 mask 255.255.240.0
}
rule IPRO_NONSSL_PROD {
when HTTP_REQUEST {
log local0. "client ip: [IP::client_addr]"
if { not [matchclass [IP::client_addr] eq $::internal_net] and [HTTP::uri] starts_with "/ipro/tpip/" } {
log local0. "IP not in internal_net class"
discard
}
elseif { [HTTP::uri] starts_with "/ipro" }
{
log local0. "IPRO starts with /ipro"
if { [HTTP::uri] starts_with "/ipro/servlet/acSnoop" }
{ log local0. "IPRO starts with /ipro/servlet/acSnoop"
pool ipro83sbox }
else {
log local0. "Redirect for ipro"
HTTP::redirect https://[HTTP::host][HTTP::uri] }
}
else { pool ipro83sbox }
}
}
- JRahm
Admin
From the user manual:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects