Question

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.