Forum Discussion

Eric_Lenington_'s avatar
Eric_Lenington_
Icon for Nimbostratus rankNimbostratus
Feb 12, 2014

Datagroup / Access class match not working.

I have the following iRule and the redirect is working well. However, I want to restrict the clients that connect. Can someone help me out with a recommendation? I have tried the below addition to no...
  • Michael_Yates_6's avatar
    Feb 12, 2014

    Sets the connection to forward IP packets. This is strict forwarding and will bypass any pool configured on the virtual server.

     

    The request will be forwarded out the appropriate interface according to the routes in the LTM routing table. No destination address or port translation is performed.

     

    Try removing your forward command and changing up your iRule logic.

     

    when CLIENT_ACCEPTED {
      if { ![class match [IP::client_addr] equals mynetwork] } {
          discard
     }
    }
    when HTTP_REQUEST {
       HTTP::redirect http://my.website.com/main/MWS-autologin.cfm?x=testing123four
    }
    

    Hope this helps.