Frank_Zhang
Feb 12, 2016Nimbostratus
iRule Forward client traffic to different port by source IP addresses
I have an https server receiving client connections from the Internet. All client traffic uses default https port 443. Depending on the source IP addresses, the VIP will forward the traffic to a different port in the server. The server will listen to multiple ports. The plan is not offloading SSL with a client SSL profile if it's possible. I am thinking an iRule like the following: when CLIENT_ACCEPTED {
switch [class match [IP::client_addr]] Source-IP-Datagroup1 {
--forward to pool port 5001-- }
Source-IP-Datagroup2 {
--forward to pool port 5002-- } Source-IP-Datagroup3 {
--forward to pool port 5003-- }
default { -- drop client request-- } } First, is it possible to do that? second what's the syntax to replace --forward to pool port 5001-- ? Third, I am not planning to offloading SSL, can I still use HTTP_REQUEST? Thank you in advance. Frank.