Forum Discussion

cvrnr_18603's avatar
cvrnr_18603
Icon for Nimbostratus rankNimbostratus
Jan 07, 2009

ASSIGNING DIFFERENT SNAT TO DIFFERENT NODES

We have F5 v9 connected to 2 ISP: “X” & “Y”

 

configure 2 virtual servers “a” & “b” and assign them both to same pool.

 

We need to setup routing so incoming requests come to “a” will be routed back through “X” and “b” through “Y’ respectively.

 

 

CAN THIS BE ACHEIVED

 

5 Replies

  • If you put the X and Y routers in a pool, then assign that pool as the default gateway, then auto lasthop should take care of this (it's on by default).

     

     

    Denny
  • I cannot put them in a pool

     

     

    There will be a direct connection to the big-ip from two isp

     

     

    i create two virtual server(not nodes)(a IP of x network ,b ip on y network ) on x and y belonging to two different subnets

     

     

     

    Can we use snat pool to forward all traffic coming form x to a to be forwarded on x network and all traffic coming to b forwarded on y network.

     

     

     

     

     

     

     

     

     

     

  • Sure if you create 2 SNAT pools, one with an X address and one with a Y address, then assign them respectively to the A and B virtuals (under Advanced), all the connections coming to the virtual will have their source address changed to either the X or Y address that you've defined in the pool, and then be sent to the pool.

     

     

    I thought you were referring to return traffic back to the client, in which case the ISP's should have some sort of gateway address that you would put in a gateway pool so that auto lasthop can function.

     

     

    Denny
  • I have two ip network 75.115.x.y and 215.57.x.y. i need to assign a virtual server in each

     

     

    network to ths same set of nodes

     

     

    is it possible for the load balancer to send back all the traffic received on 65.215 network

     

     

    using the same network and traffic received on 205.232 network on the same receieved network

     

     

     

    client x client y

     

    | |

     

    connected to LB connected to LB

     

    | |

     

    virtualserver(75.115.x.y) virtualserver(215.57.x.y)

     

    | |

     

    pool(member a,b,c) pool(member a,b,c)

     

     

    if client x intiiates a connection his dns address received for the site is 65.215 something all

     

     

    his connection should be done using the same route isp(65.215..) and if clinet y initiates the

     

     

    connection all traffic should go to 205.232 network

     

     

     

     

    this is the exact scenarion.as far as i understand snat will initiate only if connections are initiated from nodes and it will not accept the connections directly.

     

     

    so if client x is initiateing the traffic does the solution i posted work using snat .i doubt if it will work
  • Posted By cvrnr on 01/07/2009 1:40 PM

     

     

    as far as i understand snat will initiate only if connections are initiated from nodes

     

     

     

    You can SNAT incoming connections too (by using the SNAT option on the virtual server). The only reason you'd typically need to is if the LTM is not the default gateway for your nodes. But in this case you're trying to return traffic to the client on a different network from which it came in? I guess I'm not understanding why the DNS returns 65.215.x.y when the virtual server is on 75.115.x.y. If the client is trying to connect to 65.215.x.y then how is that traffic getting to the LTM in the first place? If the ISP is also routing 65.215.x.y to the LTM then you need a virtual listening on 65.215.x.y. Or am I missing something else here?

     

     

    Denny