更改基于 Azure Ubuntu 的 VM 大小后的防火墙 (iptables) 设置

Firewall (iptables) settings after changing Azure Ubuntu-based VM size

我使用 Azure 虚拟机,最近将 VM 大小扩展到 DS14。我的问题是:在此扩展过程中,VM 被重新启动。我在 iptables 中设置的防火墙是否会从以前的机器转移到新机器上?不幸的是,我没有保留备份,所以无论哪种方式都需要确定。谢谢!

Would my firewall set up in iptables from the previous machine have carried over to the new machine?

将您的 VM 大小调整为更大或更小不会更改您的 VM 的配置。调整 VM 大小只会根据 CPU 的需要更改您的 VM 大小, 网络或磁盘性能。更多信息请参考此link.

因此,iptables 将转移到新机器上。

注意:您应该将 iptables 规则保存到 /etc/iptables.rules。如果您不保存它们,当您重新启动 VM 时,规则将会丢失。但是,它与调整 VM 大小无关。