Forum Discussion
thebishop_10153
Nimbostratus
Feb 15, 2013SNAT iRule
I am trying to write a SNAT rule that will use a data group to map the client address to a specific SNAT in version 10.2.3. Due to the protocol, we need this functionality to allow traceability in o...
nitass
Employee
Feb 15, 2013e.g.
[root@ve10:Active] config b class snat_map list
class snat_map {
"10.100.61.150" { "10.146.1.7" }
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set srcip "10.100.61.150"
log local0. "\[class match -value $srcip equals snat_map\] [class match -value $srcip equals snat_map]"
}
}
[root@ve10:Active] config cat /var/log/ltm
Feb 16 09:39:50 local/tmm info tmm[4909]: Rule myrule : [class match -value 10.100.61.150 equals snat_map] 10.146.1.7
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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