walt_97468
Feb 09, 2010Nimbostratus
inbound 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 from 172.16.95.6, send it to 192.168.1.11. Here's what I have:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 172.16.95.5] } {
use node 192.168.1.10
}
if { [IP::addr [IP::client_addr] equals 172.16.95.6] } {
use node 192.168.1.11
}
}
Will this work for inbound FTP request as well as sFTP (SSH)? How do I differentiate between these inbound protocols?
Any assistance is appreciated!
Walt