forward proxy irule for ssh
I am trying to configured a VS as a forward proxy VS for ssh. The traffic flow is:
internal server --> F5 VIP --> Internet server
I have tried the below irule but the connectivity just hangs and I do not see entries in the log file. Any help and suggestions would be appreciated. What I think this irule does is searches for a string in the payload and if it matches then use pool1 else use pool2. Instead of making a VS for each instance of ssh I want to use a single VS and use an irule to direct traffic to the appropriate pool (Internet server). We have some instances where it is the same app server initiating the request for multiple applications so not able to "key" off the server IP address.
when CLIENT_ACCEPTED { TCP::collect } when CLIENT_DATA {
switch -glob [string tolower [TCP::payload ]] {
"*abc.de.efg*" {
log local0. "customer1 payload is [TCP::payload]"
pool pool1
}
default {
log local0. "cust2 payload is [TCP::payload]"
pool pool2
}
}
TCP::release }