Forum Discussion

Casa_Henry_1360's avatar
Casa_Henry_1360
Icon for Nimbostratus rankNimbostratus
Feb 26, 2009

Snat for mail servers

I am new to Irules and TCL. I have a need to create SNATs for my mail servers. What I am looking for is the syntax for parsing a field. So if I have a series of addresses defined as hosts

 

 

class hosts {

 

192.168.16.112 198.212.10.112

 

192.168.16.108 198.212.10.108

 

}

 

 

I would like to inspect it and if the address is the 1st field then the SNAT will be the second field.

 

 

Any help would be greatly appreciated.

16 Replies