Forum Discussion

joxonu_175315's avatar
joxonu_175315
Icon for Nimbostratus rankNimbostratus
Jan 20, 2015

SNAT Network vs Host

I have the need to migrate an existing application from one LB pair to another which will change the destination SNAT address which is currently white listed by various vendors.

 

My question is, does the F5 treat SNAT as a router would treat a more specific route?

 

For example if i create a SNAT for a network to translate to ip address X, can i create another SNAT with a specific iP address in the same network to translate to ip address Z?

 

ltm snat test_host { origins { 1.1.1.10/32 } translation 10.10.10.10 }

 

ltm snat test_net { origins { 1.1.1.0/24 } translation 10.10.10.20 }

 

I am not in a position to test this in my current environment and didnt have much luck with search.

 

Thanks in advance for any help provided...

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    AFAIK all listener objects, of which a SNAT is one type, precedence is given to the closest match ie /32 over /24.

     

    N