Forum Discussion

Andrew_Wilson_2's avatar
Andrew_Wilson_2
Icon for Nimbostratus rankNimbostratus
Jun 15, 2006

Port Re-Direction

I'm hoping someone can assist me. I have an iRule (see below) which looks at the URL and directs to a Pool.

 

 

when HTTP_REQUEST {

 

if { [HTTP::host] starts_with "www.test.com" } {

 

pool www.test.com

 

}

 

 

What i'd like to do now is when the request comes in on 80 I need to then send it onto the pool as port 8081. I've had a go with no joy.

 

 

Many thanks
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi,

     

     

    BIG-IP will perform port translation without a rule if it is enabled on the VIP. So you would define the nodes in the pool as an IP:port combination. Then make sure port translation is enabled on the VIP.

     

     

    When the connection is made to the VIP, the rule logic is processed and if the request is sent to the pool, it will be made to the node's IP:port.

     

     

    Aaron