Forum Discussion
Casa_Henry_1360
Nimbostratus
Feb 26, 2009Snat 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
...
Casa_Henry_1360
Nimbostratus
Feb 27, 2009Thanks for the help so far. I dont want to nat everything on that network, just specific hosts. I found the "findclass" example and was going to use that. So I have
class dest_pairs {
"192.168.16.112 198.212.10.112"
"192.168.16.108 198.212.10.108"
"192.168.16.109 198.212.10.109"
"192.168.16.117 198.212.10.117"
"192.168.16.118 198.212.10.118"
}
when CLIENT_ACCEPTED {
set my_snat [findclass [IP::client_addr] $::dest_pairs " "]
if { $my_snat ne "" } {
snat $my_snat
}
}
However when I try to compile it I get an error
"[undefined procedure class][class dest_pairs]"
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects