Forum Discussion

Fredrik_Persso1's avatar
Fredrik_Persso1
Icon for Nimbostratus rankNimbostratus
Oct 03, 2005

irule / universal persistance for other protocl then http

Hi!

 

 

I would like to do expression persistence for a TCP protocol CIMD.

 

 

So I would like to direct all TCP connection to the same node where the userid is the

 

same in the CIMD login message.

 

The login message is ascii coded. The message will look like this

 

in ascii character format.

 

01:XXX010:"userid":011"password""checksum"

 

 

XXX is package number (to be ignored).

 

"userid" the userid string

 

 

Is is possible to do expression persistence on this and

 

how would an expression look to make this work?

 

I'am using version 4.5

 

 

Would be greatful for some help!

 

 

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    It should be possible to do persistence based on this information. It's just a little different than the examples listed here: Click here

    Your persist statement inside your pool definition would be something like this :

    
    persist findstr(tcp_content, "userid", 8, '<')
    persist_timeout 30
    member ...

    Note that this isn't tested, and you might have to play around with it a little to get it to function the way you're intending to.

    -Colin