Forum Discussion

rogerluo_78747's avatar
rogerluo_78747
Icon for Nimbostratus rankNimbostratus
Nov 30, 2009

Help on rdp session based Persistence

I am new to irules, and my client is asking for a function which I have no clue if it is even possible to do with irule on F5.

 

 

My customer using F5 ltm to load balance Windows RDP servers. The client side software is Sun Solaris rdp client, and their windows servers do not support session directory. So SUN support team did some scripting which will let Solari server sending end users IP addr's Hex value as "username" to get persist table buid up. Now problem comes, end user will see this weird value on login screen and my question is how to blank out that value use irules?

 

 

Let me know if you need to know more.

 

 

Thanks

 

Roger
  • Hi Roger,

     

    Here is a post that talks about persistance on RDP

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=25271&view=topic

     

     

    I hope this helps

     

     

    Bhattman

     

     

  • I suppose you need is events like SERVER_CONNECTED and SERVER_DATA

     

     

    In theory this is what you might need

     

     

      
      when SERVER_CONNECTED {  
       Collect using[TCP::collect]  
      }  
      when SERVER_DATA {  
      Search for username using [TCP::payload]  
      Then do a replace using TCP::payload replace     
      Then release using [TCP::release]  
      }  
      

     

     

    I don't have any RDP servers to test against but I think this would be good start for the logic and try to use the forum to Frankenstein the code together.

     

     

    I hope this helps.

     

     

    Bhattman
  • How are you building the persistence entry currently? Might be a simple additional few lines to that if an iRule.