For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Al_Faller_1969's avatar
Al_Faller_1969
Icon for Nimbostratus rankNimbostratus
Aug 23, 2006

Persist on last octet of IP address

Hi All -

 

 

I am trying to create an irule to persist a user based on the last octet of their IP address. I'll be the first to admit, I'm not good with TCL and was hoping for a little assistance. Does anyone have something similar to a rule like this? Should this be done with regex, or is there another, better way?

 

 

Thanks in advance,

 

 

Al

1 Reply

  • For those who are curious, I got this working:

     

     

    when HTTP_REQUEST {

     

    persist uie [getfield [IP::remote_addr] "." 4]

     

    }

     

     

    Works great.

     

     

    Al