Forum Discussion
hooleylist
Nov 09, 2012Cirrostratus
The HTTP filter haven't been hit in CLIENT_ACCEPTED so you won't be able to use HTTP commands there. You can do a check of the client IP once per connection in CLIENT_ACCEPTED and send a redirect in HTTP_REQUEST. Or you could just move the code to HTTP_REQUEST.
If you've defined the subnets in an address type data group, a bitwise comparison is done using class match.
when HTTP_REQUEST {
if { not [class match [IP::client_addr] equals meetingplace_redirect_ip] }{
HTTP::redirect "https://meet.contractor.com"
}
}
Aaron