Forum Discussion

sheikh_316862's avatar
sheikh_316862
Icon for Nimbostratus rankNimbostratus
Aug 17, 2018

Irule

IRules assiantace Required

 

when VS:7443 it send traffic to pool (server1:443) when VS:8443 it send traffic to pool (server2:443) when VS:9443 it send traffic to pool (server3:443)

 

But all cases i want server-side encryption only

 

2 Replies

  • Hi,

     

    Why you don't create 3 VS:

     

    • VS:7443 (pool1: server1:443)
    • VS:8443 (pool2: server2:443)
    • VS:9443 (pool3: server3:443)

    And on each VS you set only server-ssl profile without client-ssl profile (because you want server-side encryption only).

     

    It's more simple and easy to maintain. More you can manage health check independently for each node...

     

    Let me know if this solution satisfies you.

     

    Regards,

     

  • If I'm reading your question correctly, you want unencrypted client traffic arriving to a single destination IP address but different ports to be load balanced to an appropriate server and encrypted on the server-side. (So encryption only on the server-side connection, not on the client-side.) You don't need an iRule to do this traffic direction. Just define three separate virtual servers, each listening on a different port (7443, 8443, and 9443) that load balance to their respective port 443 pool member. (In other words, you can define three different virtual servers at the same IP address but listening at different ports.) Make sure each virtual server also has an appropriate server-SSL type profile configured with the necessary certs to be able to handshake properly with the 443 servers on the server-side connection.