Forum Discussion

wbbigdave_97776's avatar
wbbigdave_97776
Icon for Nimbostratus rankNimbostratus
Oct 02, 2012

Using an iRule to redirect traffic to different Virtual Servers

Hi,

 

 

I wondered if it was possible to redirect incoming connections to a single virtual server to different virtual servers on the LTM?

 

 

Basically we want one VS to rule them all, which then redirects traffic to other VS based on interesting traffic such as port (80, 8080 etc) or incoming client. The reason for having other VS behind this single entry point is to allow control over different web services behind other VS, i.e applying oneconnect if necessary and other similar parameters.

 

 

These secondary VS would also process the traffic in iRules to evaluate interesting trafic for further pool redirect (uri etc)

 

 

Thanks El

 

2 Replies

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account
    you could do something like the following

     

     

    when CLIENT_ACCEPTED {

     

    if {[TCP::remote_port] == 80} {

     

    virtual HTTP_virtual

     

    }

     

     

    }
  • shouldn't it be TCP::local_port rather than TCP::remote_port?