Forum Discussion

netadmindetail_'s avatar
netadmindetail_
Icon for Nimbostratus rankNimbostratus
Apr 21, 2015

NET TCP streaming manipulated by iRules

Hi.

 

Some messaging app on our customers side need to connect to a custom TCP port. Each customers must use a different port.

 

On my side I created a VIP for each customers linked to a 0 port pool.

 

Our network is bigger than before and we need to add 2 pool of server doing exactly the same thing. I want the same VIP being able to selectively send traffic on 1 pool or the other.

 

So my iRules look at a data-group list containing a list of TCP host like this

 

customer1.domain.com:=Group1 customer2.domain.com:=Group1 customer3.domain.com:=Group1 customer4.domain.com:=Group2 customer5.domain.com:=Group2

 

I tried to use the HTTP_REQUEST event but when as soon as I activate a HTTP Profile my messaging app stop working.

 

The messaging use NET TCP (Streaming)

 

What kind of trigger event should I use.

 

Thanks

 

  • If it's TCP based, you can try the CLIENT_ACCEPTED event to collect data (TCP::collect) and the CLIENT_DATA event to find the relevant info in your TCP::payload. Have a look on Devcentral for these commands for examples.

     

  • Salim_83682's avatar
    Salim_83682
    Historic F5 Account

    If it's TCP based, you can try the CLIENT_ACCEPTED event to collect data (TCP::collect) and the CLIENT_DATA event to find the relevant info in your TCP::payload. Have a look on Devcentral for these commands for examples.

     

    • netadmindetail_'s avatar
      netadmindetail_
      Icon for Nimbostratus rankNimbostratus
      Thanks it works. I need to clean up the payload but I ask this in another question on devcentral. Thanks you so much