How to re-encrypt Load Balancer-to-server traffic?

Hi all,

I’m about to set up a Load Balancer with 2 droplets (with more droplets likely added in the future). I understand that with DigialOcean Load Balancers I can SSL/TLS encrypt the user-to-loadbalancer traffic, but then the traffic will pass unencrypted from the load balancer to the 2 backend server droplets.

I know that SSL Passthrough (i.e. end-to-end encryption) on DigitalOcean LoadBalancer is possible, but am concerned about DDoS attacks and would like to perform layer 7 functions on the data … therefore passthrough doesn’t seem suitable. I’m therefore looking into “re-encrypting” the loadbalancer-to-server traffic.

  1. Do DigitalOcean load balancers allow for re-encryption?
  2. How can I set up such re-encryption? (preferably on DigitalOcean LoadBalancers, or otherwise if this isn’t possible)
  3. Is re-encryption even value-add if I have set up an OpenVPN around my back-end server droplets (I haven’t figured out how to include Load Balancer in the VPN)?

Apologies, networking is still fairly new to me!

Thanks, Emma


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If security is required from end to end, your best option is to use SSL Passthrough. Your droplets will suffer the performance overhead of SSL encryption regardless of Passthrough or Re-encryption at the Load Balancer.

If security is not crucial, then off-loading the encryption workload to the Load Balancers is your best option for performance.