Forum Discussion
Moe_Jartin
Cirrus
Aug 25, 2009using Switch to match IP address??
I need to SNAT a handful of servers to public addresses when they are sending mail so that their reverse records match when the receiving mail server does the lookup. The BigIP is inline, i.e. the Bi...
JRahm
Admin
Aug 25, 2009you shouldn't need globbing for exact IP matching. Try this:
when CLIENT_ACCEPTED {
if { [TCP::local_port] equals 25 } {
switch [IP::remote_addr] {
"10.100.250.91" { snatpool SNAT_mail1.mysite.org }
"10.100.250.92" { snatpool SNAT_mail2.mysite.org }
"10.100.250.94" { snatpool SNAT_mail4.mysite.org }
"10.100.250.93" -
"10.100.250.96" { snatpool SNAT_mail3.mysite.org }
default { do something }
}
}
}
HTH...Jason
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
