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

Michael_108224's avatar
Michael_108224
Icon for Nimbostratus rankNimbostratus
May 22, 2014

select tcp profile by host in a irule

Hi ..

 

I want to use different tcp profiles for two webservices, using the same webserver (with two vhost). one for normal "computer"- webservice and one for "mobile"- webservice.. I have tryed this (but it does not work) :

 

when HTTP_REQUEST { set vhost [HTTP::host] switch $vhost { "web.domain.com" { use [PROFILE::tcp] "tcp-wan-optimized" } "mobil.domain.com" { use [PROFILE::tcp] "tcp-cell-optimized" } } }

 

1 Reply

  • This, unfortunately, will never work. The TCP profile works at OSI layer 4, while HTTP events work at layer 7. By the time you get to HTTP_REQUEST, the TCP profile has already been applied. You best bet I think is to create two separate VIPs on different IP addresses, and with different TCP profiles.