Forum Discussion

marlon_Gino-gi1's avatar
marlon_Gino-gi1
Icon for Nimbostratus rankNimbostratus
Aug 19, 2008

persistence based on MSISDN number

hello,

 

 

Im new to Irules,

 

 

would like to know if there is an Irule that that can persist client connection based on client mobile number or msisdn? the client mobile number is included within the header whenever the client request for a service or connection to the backend server.

 

 

 

thanks in advance

 

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If the information you're looking for is in the header, then you should be able to find it and use it to set up persistence via an iRule.

     

     

    I don't recall seeing an exact example for what you're looking for, but the persist add, regexp and TCP::collect commands are likely good places to start.

     

     

    Colin
  • hello Colin,

     

     

    thanks for the info.

     

     

    by the way, what we want to accomplish is to persist client connection based on the attributes on the radius accounting specifically the framed IP attributes on the radius accounting payload. once the client send a radius accounting start on the server it will use the framed IP address as it's address in accessing different services like WEB,FTP,etc.

     

     

     

    we managed to create a script but were not sure if this one will accomplish what we need.

     

     

     

    when CLIENT_ACCEPTED {

     

    TCP::collect

     

    }

     

    accumulate

     

    set str "[TCP::payload ]"

     

    if { tcp_content contains "8"}

     

    set num [findstr[tcp_content] "8:" 7\n]

     

    persist simple $num 300

     

    discard

     

     

    1. we do not know how we can persist based on the framed IP contained within the client radius packet request.

     

     

    2. another requirement, once the client is being persisted based on the framed IP, the persistence connection should stop once the client send radius accounting stop on the radius server.

     

     

    thanks in advance.