大网数据广告活动
服务器运维问答

Loadbalancer redirecting https requests to http

· 52CE 我爱测

Our sys admin has set up a load-balancer that handles all HTTPS requests and proxies them to the server as HTTP. The server doesn't have HTTPS so the connection between LB and server is un-secure but the connection to the LB is. …

问题原文

原帖链接 · algiogia · CC BY-SA 3.0

Our sys admin has set up a load-balancer that handles all HTTPS requests and proxies them to the server as HTTP. The server doesn't have HTTPS so the connection between LB and server is un-secure but the connection to the LB is. I'd never seen something like that and I am not really sure it's the proper way to do it. The actual server is not available publicly, only through the load-balancer.

  • Is this enough to make it secure? Could one bypass the load-balancer?

  • Is this a standard technique?

已采纳解答

原帖链接 · Teun Vink · CC BY-SA 3.0

This is typically called 'SSL offloading' and is quite common in bigger setups. It reduces load on the back end servers, since many hardware loadbalancers have special crypto chips which can handle a lot of SSL traffic at high speed. Another benefit is that you have to store the SSL certificate and its private key only in one place, and will only need to replace it there when the certificate it's close to expiring.

One requirement to make it secure is that the nodes which are being loadbalanced aren't reachable any other way. Typically, these nodes are only connected on private IP addresses which aren't routed even within the network, so there's only a layer 2 (ethernet) network between the servers and load balancer, and no other way to connect to servers.

In some cases (for example hosting of PCI compliant setups) this won't be enough, so often SSL re-encryption is used there. In that case the connection between the load balancer and the servers is via SSL as well. The loadbalancer decrypts traffic coming from clients, does its magic (for example pick the right node to proxy traffic to, do some rewriting tricks, etc) and then encrypts it again on the connection to the backend server.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。