Forum Discussion
Manuel_Gabaldon
Nimbostratus
Apr 29, 2008Outbound SNAT matching inbound Virtual Servers
Hi,
Our customers are always asking us for a load balancing solution that provides bi-directional correspondence between a virtual server address (inbound) and the SNAT address being applied...
The_Bhattman
Nimbostratus
Apr 29, 2008You could create a simple irule applied to the virtual that is handling your outbound connections.
First declare a class. You can do this on the GUI but the following is the code representation
class dg_internal {
2.2.2.10/32
2.2.2.11/32
}
The following is the irule that calls up the class object
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::dg_internal]} {
snat automap
}
}
You would apply this is on the virtual server that handles the outbound connection for the pool members. The autosnat is something you can use based on the floatinging address of the outbound facing interface. However you could replace it with something more specific like "snat 4.4.4.4"
Here is a similiar article Click here
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