Forum Discussion
Jinshu
Nov 17, 2016Cirrus
Create two seperate pools for port 21 and 22. Lets say port 21 uses the pool ftp_pool and port 22 uses ssh_pool. Create seperate health monitors for each pool to use TCP monitor and respective ports. Remove default pool from the virtual server 10.10.10.10:0 and attach below irule.
when CLIENT_ACCEPTED {
if {[TCP::local_port] == 21} {
pool ftp_pool
} elseif {[TCP::local_port] == 22} {
pool ssh_pool
}
}
-Jinshu