cancel
Showing results for 
Search instead for 
Did you mean: 

Using an iRule to redirect traffic to different Virtual Servers

wbbigdave_97776
Nimbostratus
Nimbostratus

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 2

Richard__Harlan
Historic F5 Account
you could do something like the following

 

 

when CLIENT_ACCEPTED {

 

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

 

virtual HTTP_virtual

 

}

 

 

}

nitass
F5 Employee
F5 Employee
shouldn't it be TCP::local_port rather than TCP::remote_port?