Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mixed use of Azure LB and ILB to access the same web service (1)

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

In classic usage scenarios, we generally use AzureLoadBalancer to provide load balancing services for the public network, while Azure Internal LoadBalancer is used to provide internal services that are not willing to expose the services to the public network, such as the database layer. An example of a classic scenario is shown in the following figure:

However, in some special usage scenarios, for the same web service, users will want to be able to access both the public network and the private network using LB and ILB, and access the port in exactly the same way. I draw a simple diagram, as shown below:

This document describes how to configure LB and ILB for this scenario. To facilitate testing, you need to make the following preparations in advance:

To install and configure Azure Powershell, please use version 0.9.8, because AzureResourceManager is used in version 1.0 and later, the configuration methods and commands will be different, which I will describe in a later article:

To set up a vNet on Azure, all three VM we tested need to be placed in this vNet

Create 2 WEB VM, and in my test case, for visualization, use two Ubuntu 14.04 as WEB servers, in the same vNet, in one cloudservice, and configure highly available collections, which is also the best practice for configuring high availability in a production environment.

Create a test VM. I used Windowsserver 2012 in my test, which is in the same vNet as webvm.

To distinguish between the two web VM and test web services, let's make some simple changes and basically do two things:

Install Nginx as a web server

Modify the default page and add words such as VM1 and VM2 to distinguish the VM of the request response to the service.

The specific practices are as follows:

Install Nginx first

Configure the Nginx default page for testing:

Sudo vi / usr/share/nginx/html/index.html

Add identification statements to distinguish different VM:THIS IS VM1

Save the exit and follow this method to modify the second VM

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report