Forum Discussion
Juha_47876
Nimbostratus
Oct 14, 2011SNAT based on destination IP
Hi,
I would need a solution for the following requirement.
I have a pool of servers and their internal IP addresses are e.g.:
pool POOL_WITH_6NODES {
lb method me...
nitass
Employee
Oct 15, 2011e.g.
[root@iris:Active] config b class myservers list
class myservers {
{
host 192.168.1.1
host 192.168.1.2
host 192.168.1.3
host 192.168.1.4
host 192.168.1.5
host 192.168.1.6
}
}
[root@iris:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if {[class match [IP::remote_addr] equals myservers]} {
switch [IP::local_addr] {
"10.1.1.1" { snat 172.1.2.100 }
"10.2.2.2" { snat 172.1.2.101 }
"10.3.3.3" { snat 172.1.2.102 }
default { do something }
}
}
}
}
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