Forum Discussion
walt_97468
Nimbostratus
Feb 09, 2010inbound requests for FTP and sFTP
We have a need to send requests to different nodes within a pool, based on source IP address. For example if a request comes in from 172.16.95.5 send it to node 192.168.1.10, and if the request comes...
hoolio
Cirrostratus
Feb 10, 2010If do have now or have had an active support contract while a more recent LTM version has been released, you could upgrade from 9.2.3 to a supported version. See SOL7727 for details (Click here). You can reactivate your license on license.f5.com to update the service activation date to the last time you had active support. 9.4.8 would be good from a stability perspective. 10.0.1 or 10.1.0 would be good from a feature perspective.
For 9.2.x, you can use bhattman's example or you can create a single string datagroup containing the client destination IP and a corresponding server IP:
class ip_mapping_class {
"1.1.1.1 2.2.2.2"
"1.1.1.2 2.3.4.5"
}
You could then use an iRule to check the client IP against the first field:
when CLIENT_ACCEPTED {
Check if the destination IP is in the first field of the datagroup
set dest [findclass [IP::clientaddr] $::ip_mapping_class " "]
Check if there was a match
if { $dest ne "" } {
Use the match as the destination IP
node $dest
}
}
Aaron
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