Forum Discussion
swo0sh_gt_13163
Altostratus
Jun 25, 2014Can I SNAT UDP traffic using iRule? [for outbound traffic]
Hello Folks,
Can I SNAT UDP (precisely SNMP) using iRule? If yes, could you please share an example how?
Thank you,
Darshan
Kevin_Stewart
Employee
Jun 26, 2014Try this:
when CLIENT_ACCEPTED {
if { ( [IP::addr [IP::client_addr] equals 10.254.47.12/32] or [IP::addr [IP::client_addr] equals 10.254.47.13/32] ) } {
switch [IP::protocol] {
"1" -
"17" {
snat automap
}
}
}
}
when CLIENT_DATA {
if { ( [IP::addr [IP::client_addr] equals 10.254.47.12/32] or [IP::addr [IP::client_addr] equals 10.254.47.13/32] ) } {
switch [IP::protocol] {
"1" -
"17" {
snat automap
}
}
}
}
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