Forum Discussion

Eric_Van_Tol_10's avatar
Eric_Van_Tol_10
Icon for Nimbostratus rankNimbostratus
Oct 10, 2005

Selective SNAT rule

Hi all,

 

I am new to iRules and just implemented my first one today to resolve a problem we've been seeing with NAT. However, I need to create another one and I need to know the correct syntax to use. The setup is as such:

 

 

If I have a pool as such:

 

 

pool MB_pool {

 

lb method member ratio

 

snat disable

 

member 172.19.10.11:smtp monitor smtp_10.11

 

member 172.19.10.12:smtp monitor smtp_10.12

 

member 172.19.10.13:smtp monitor smtp_10.13

 

member 192.0.2.25:smtp session disable

 

}

 

 

How can I construct a rule that will prevent SNAT from occuring on the 172.19.x.x addresses, but will allow it on the 192.0.2.25 address? The 172.19.x.x addresses are physically located behind the BigIP, but the 192.0.2.25 address is on a remote network (a dummy VIP on a remote F5).

 

 

TIA,

 

eric

24 Replies