One Client owns the server. Only client know on what port a service is running in that server. They want to send port info as some data in the connection. Since I have no real server port info, I can’t bind virtual server port to real server port.
When Client connects to virtual server/port, I want to write an iRule that will parse data in that connection and extract port number. Using the port number in the parsed data, client connection is forwarded to real server.
Customer has 1000 servers with 20 services in each server.
Real server port number is not available. I can bind vip to real server IP. But can’t bind to a port on the real server. Client provides me this port number in the payload. I need to parse the payload and extract the port number and continue my connection to real server. Every time a client makes a connection to vip, it provides me real server port number in the payload. Everytime, I have to run the script to find real server port number and then connect to real server port to complete the connection from client to real server.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
set port [TCP::payload 2]
TCP::release
}
when LB_SELECTED {
node [LB::server addr] $port
LB::reselect
}