基于源网络的 Azure 负载均衡规则

Azure load balancing rule based on source network

是否可以使用 Azure 负载均衡器创建基于源网络的负载均衡规则?例如:

从 10.1.0.0/16 到端口 9000 的连接转到后端端口 9100

从 10.2.0.0/16 到端口 9000 的连接转到后端端口 9200

不,这不可能,因为前端 IP 配置仅包括 IP 地址、协议和端口。参考here。另外,如果你打算配置一个内部LB,那么前端和后端应该在一个虚拟网络中。

A Load Balancer rule is used to define how traffic is distributed to the VMs. You define the frontend IP configuration for the incoming traffic and the backend IP pool to receive the traffic, along with the required source and destination port.

The frontend (aka VIP) is defined by a 3-tuple comprised of an IP address (public or internal), a transport protocol (UDP or TCP), and a port number from the load balancing rule.

更多信息,您可以阅读multiple frontends for Azure Load Balancer