felix001_29321
Jan 15, 2013Nimbostratus
HTTP 403 with Irule
I have a VIP set up with both client and server side SSL.
I have added an irule to issue a 403 if the client comes from a certain IP for a certain domain. But when I curl it reports a ssl socket error and when going to the site I just get a blank screen. It appears that the irule is breaking the session as it is inbetween the client and server side SSL sessions.
Heres my iRule...
------------------------
when HTTP_REQUEST {
if { ([HTTP::host] equals "domain.com") and (not [class match [IP::client_addr] equals group ]) } {
HTTP::respond 403
}
}
------------------------
Any thoughts.
Thanks in advance.....