Forum Discussion

orange_team's avatar
orange_team
Icon for Nimbostratus rankNimbostratus
Jul 03, 2019

using an iRule to store client source IPs list

Hi all,

I'm looking for a way to store client source IPs that connect to a specific virtual server.

 

I need this data to create a white-list that will be used in a condition block in a different iRule, applied on a different VS.

At first i thought to a dynamic population of a data-group, but searching a bit for it, i cannot find any applicable solution.

 

please help me.

Regards, Alex

2 Replies

  • You cannot write directly from iRules to anything within the F5 configuration or filesystem.

     

    You could either log the data using High Speed Logging (HSL) or look at using an iRuleLX solution which can write to part of the filesystem e.g. https://devcentral.f5.com/s/articles/Use-iRules-LX-to-write-to-the-file-system?page=1

    • Lee_Sutcliffe's avatar
      Lee_Sutcliffe
      Icon for Nacreous rankNacreous

      You could also store client IP address in the session table and use another iRule to extract the IPs