Forum Discussion

gpisciotta_1242's avatar
gpisciotta_1242
Icon for Nimbostratus rankNimbostratus
Jun 25, 2014

complicated connection over time irule

I need to write an irule for use with a single virtual server redirecting traffic to a specific pool based on URI to control traffic in the following ways: 1. limit any public ip addresses to a max of accessing 2 connections per minute with a total of 10 unique connections in one day. 2. Any per ip access attempts more than 3 requests in 10 seconds be black listed. 3. log the above ip addresses in a table allowing admin review and entry removal.

 

I have been looking through articles and think I have other sources but have not yet had a window to try it in the lab. Any suggestions or links to other articles are greatly appreciated.

 

only LTM is running on the appliances, TMOS is 11.2

 

1 Reply

  • Here are some posts that can give you some ideas how to write up the rile you need

     

    https://devcentral.f5.com/questions/randomly-unpredictable-rate-limiting-using-the-irule-irulesvirtual_server_connection_rate_limit_with_tablesashx

     

    https://devcentral.f5.com/articles/v101-irules-rate-limiting-with-the-table-command

     

    https://devcentral.f5.com/wiki/iRules.HTTP-URI-Request-Limiter.ashx?NoRedirect=1&NS=iRules

     

    I hope this helps,

     

    -=Bhattman=-