简体   繁体   English

Azure 防火墙:如何将 Internet URL 转换为内部/Intranet URL?

[英]Azure Firewall: How to translate Internet URL to Internal/Intranet URL?

I have created the following Vnets我创建了以下 Vnet

在此处输入图像描述

vnet-hub-poc-hubspoke is the Hub Vnet vnet-hub-poc-hubspoke是集线器 Vnet

and both the Vnets are peered as per the HUB-SPOKE model并且两个 Vnet 都按照HUB-SPOKE SPOKE model 对等

在此处输入图像描述

在此处输入图像描述

vnet-hub-poc-hubspoke being a Hub Vnet, it has Azure firewall configured vnet-hub-poc-hubspoke是一个 Hub Vnet,它配置了Azure firewall

在此处输入图像描述

both the Vnets are connected to Azure Private DNS两个 Vnet 都连接到Azure Private DNS

在此处输入图像描述

Azure Private DNS has a record pointing to the VM deployed on the vnet-prod-poc-hubspoke Vnet Azure Private DNS有一条记录指向部署在vnet-prod-poc-hubspoke Vnet 上的 VM

在此处输入图像描述

and I could access the FQDN within the internal network我可以访问内部网络中的FQDN

在此处输入图像描述

after adding the below rule in Azure Firewall , I could access the website using the firewall public IPAzure Firewall中添加以下规则后,我可以使用firewall public IP访问该网站

在此处输入图像描述

Now, instead of firewall public IP I want to use the domain name like现在,我想使用域名而不是firewall public IP

http://myfirstweb.private.landingzonedomain.com/ (for now, I have updated the hosts file in the client machine pointing to firewall public IP ) http://myfirstweb.private.landingzonedomain.com/ (现在,我已经更新了客户端机器中指向firewall public IP的主机文件)

what should I do at the azure firewall level so that it would translate Internet URL to Internal/Intranet URL like我应该在 azure 防火墙级别做什么,以便它将 Internet URL 转换为内部/Intranet URL 之类的

http://myfirstweb.private.landingzonedomain.local/ http://myfirstweb.private.landingzonedomain.local/

What you want is not possible, because you cannot assign a domain name to your Azure Firewall.您想要什么是不可能的,因为您无法为您的 Azure 防火墙分配域名。 What you could do is to create a DNS record at a domain name provider that translates a custom domain to your Azure firewall public IP.您可以做的是在域名提供商处创建 DNS 记录,将自定义域转换为您的 Azure 防火墙公共 IP。

Although I have seen people routing inbound traffic in their vnet, Azure firewall is mainly designed for controlling outbound traffic and traffic flowing between (peered) vnets.虽然我看到人们在他们的 vnet 中路由入站流量,但 Azure 防火墙主要用于控制出站流量和(对等)vnet 之间的流量。 When you want to direct inbound traffic to a website or service inside your vnet, you can choose between:当您想要将入站流量引导到您的 vnet 中的网站或服务时,您可以选择:

All the options above allow you to add custom domains and certificates.以上所有选项都允许您添加自定义域和证书。 On the other hand, when you want to access a virtual machine through rdp or ssh your main options are:另一方面,当您想通过 rdp 或 ssh 访问虚拟机时,您的主要选项是:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM