Forum Discussion

kittu25's avatar
kittu25
Icon for Nimbostratus rankNimbostratus
Sep 29, 2017

impose Session limits by ipadress on VIP

how to impose session limits by ipadress on F5 VIP or pool. if anyone has Irule please can share ideas/suggestions.

 

Kittu

 

2 Replies

  • Have a look in the Connection Rate Limit Mode in the virtual server configuration. There are multiple modes there, just check the help menu.

     

    I guess the one you are looking for is this one.

     

    "Per Virtual Server and Source Address: Applies Connection Rate Limit Source Mask to the source IP address of incoming connections to this virtual server, and applies the rate limit to connections sharing the same subnet. The Connection Rate Limit Source Mask specifies the number of bits in the IP address to use as a limit key."

     

  • Hi,

     

    I guess you can create an irule with 2 events:

     

    • CLIENT_ACCEPTED
      • manage a table and increment IP Address count
    • CLIENT_CLOSED
      • manage a table and decrement IP Address count