Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

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" } } }

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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.

0
Comments on this Answer
Comment made 1 month ago by Ricardo Raza 331

Hi do you have any answer for this problem?

0