AWS。意外阻止所有连接

AWS. Accidently block all connection

我有一个 EC2 实例。并且偶然地,我远程访问了实例并设置了防火墙以阻止来自外部的所有连接。在那之后,我立即被踢出了远程屏幕。无论我如何尝试再次连接,都无法正常工作。所以请任何人指导我度过这种情况=(非常感谢。

你不应该在实例内部管理防火墙相关的东西,处理这种东西的最好方法是security group。因此,如果发生了不好的事情,您可以退后一步,也可以从 AWS 控制台控制安全组规则。

安全组:安全组充当关联的 Amazon EC2 实例的防火墙,在实例级别控制入站和出站流量。

VPC_Security

如果防火墙阻止所有 public 连接并允许 VPC 内的连接,

现在进入你的问题,所以你可以检查restore-network-connectivity-windows

问题

I accidentally disabled network connectivity in Windows while I was working on it, and I’ve lost connection to my Amazon EC2 instance. How can I fix it?

简短说明

You can create a temporary Elastic Network Interface (ENI) and attach it to your instance. This will allow you to connect to the instance temporarily and fix the issue.