Forum Discussion
JohnQuintas_910
Nimbostratus
Oct 16, 2015SNAT outbound connections from pool members to virtual server IP for a specific outbound port
I have a virtual server for inbound ftp connections
Virtual server: 1.1.1.1:21, using the standard FTP profile and source_addr persistence, 30 min timeout
Pool Members:
10.0.0.10:21
10.0.0.11:...
JohnQuintas_910
Nimbostratus
Oct 20, 2015Does this syntax look correct? I have a few more pairs of IPs that need SNATs...
when CLIENT_ACCEPTED {
if { [TCP::local_port] == 21] || [TCP::local_port] == 22] }{
if { [IP::addr [IP::client_addr] equals 10.0.0.10] }{
snat 172.18.1.1
} elseif { [IP::addr [IP::client_addr] equals 10.0.0.11] }{
snat 172.18.1.1
} elseif { [IP::addr [IP::client_addr] equals 10.0.0.12] }{
snat 172.18.1.2
} elseif { [IP::addr [IP::client_addr] equals 10.0.0.13] }{
snat 172.18.1.2
} elseif { [IP::addr [IP::client_addr] equals 10.0.0.14] }{
snat 172.18.1.3
} elseif { [IP::addr [IP::client_addr] equals 10.0.0.15] }{
snat 172.18.1.3
}
}
}
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