possible to double/twice nat on F5?
Hi,
I have the fun task of making a F5 with ltm+afm replace a cisco FWSM that is a bridge between overlapping networks ( company mergers).
Right now the FWSM does 4 task related to nat, 3 of them are easy to cover off, 1. DNS rewrite/doctor of real/nat addresses, done with an irue and a data group 2. one way pats ( 1 pat address for a prefix) again a simple irule doing snat + a data group lookup 3. static one to one nats, done with nat lists.
Now for the hard one that im not sure how to approach. When both 2 and 3 happen to the same flow at the same time or if 3 happens twice. So what happens on the FWSM is that nat occurs on both ingress and egress. On ingress the FWSM either 1:1 nats or pats and on egress 1:1 nats.
The end result is both and source and destination addresses are translated via a two step process, the source on ingress and the destination on egress. To make things even more fun either side of the FWSM can be the originator of connections.
So does any one have any example of how to accomplish this?
my initial thought looking through the irule wiki is two data group lookups one for snat ( set the source) and the other using the node command( to set the dest). But before i go down that path ( i find simple tasks in tcl frustrating compared to languages i actually know) is there a better way?
cheers