Forum Discussion

James_Dyson_470's avatar
James_Dyson_470
Icon for Nimbostratus rankNimbostratus
Sep 23, 2005

Different VIP, different SNAT - based on dest

Hi all,

 

 

Any advice guidance much appreciated.

 

 

We want to configure the F5 as a one armed loadbalancer, with multiple VIPs. Nothing too testing, but I want to set it so that the original request comes in on port 8080, gets forwarded onto the reals on a different port, using a unique SNAT. (The idea being we can run multiple VIPs which will then be assigned unique SNATs.

 

 

So, using an iRule, I figured it would be something like...

 

 

 

when SERVER_CONNECTED {

 

if { TCP::local_port equals 8080 } {

 

snatpool proxy

 

}

 

}

 

 

Where proxy is the name of the SNATPOOL I've set up with just a single address in at the moment. Would add more based on traffic loads. Then adding multiple 'elses' for the other services.

 

 

Am I heading in the right direction?

 

 

Thanks again.

 

 

J

2 Replies

  • Thanks Colin, not entirely comfortable with version 9, but getting there.

     

     

    Looks good now.
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    My pleasure, jrdyson...I'm always happy to help.

     

     

    Let us know if you've got any other questions.

     

     

    -Colin