简体   繁体   English

更改Azure App服务的IP地址

[英]Change IP address of azure app service

I have an azure app service that runs through cloudflare. 我有一个贯穿cloudflare的Azure应用服务。 As the site was previously running without cloudflare you can find my sites IP address via DNS history here https://securitytrails.com/ 由于该站点以前运行时没有cloudflare,因此您可以在此处通过DNS历史记录找到我的站点IP地址https://securitytrails.com/

Knowing this it means an attacker could bypass my cloudflare DDOS protection. 知道这一点意味着攻击者可以绕过我的cloudflare DDOS保护。

How can I change the IP address of my azure app service without deleting it? 如何在不删除Azure App服务的IP地址的情况下将其删除?

I'm guessing I could add a public IP and route all traffic from this IP to my existing IP, then I could firewall my existing IP to only accept traffic from the new one. 我猜想我可以添加一个公共IP并将所有流量从该IP路由到我现有的IP,然后我可以对我现有的IP进行防火墙保护以仅接受来自新IP的流量。 This seems a little convoluted when I could just change the IP, update DNS during nighttime and accept the possibility of a few hours of downtime for users who like to work at 4am (none). 当我可以更改IP,在夜间更新DNS并接受喜欢凌晨4点(无)工作的用户可能会停机数小时的情况时,这似乎有些令人费解。 Is it possible to force the IP to change? 是否可以强制更改IP?

Directly it is not possible to change the IP address of an Azure App Service. 直接无法更改Azure App Service的IP地址。 What you can do is either delete the service and recreate it, or downgrade to the free/shared tier. 您可以做的就是删除服务并重新创建它,或者降级到自由/共享层。

Both of these actions will relinquish your current IP. 这两个操作都将放弃您当前的IP。 When it is recreated, upgraded you will get a new VM instance and a new set of IP addresses. 重新创建,升级后,您将获得一个新的VM实例和一组新的IP地址。

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

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