Tom
Tom

Reputation: 2631

aws ec2 public ip from vpc timeout

Is it possible to configure aws vpc/subnet so that the public ip4 addresses are reachable from within the VPC?

At the moment, the ec2 machine's ip4 addresses are reachable from the internet, but timeout when connecting from within the same machine or from another machine on the same subnet.

Upvotes: 0

Views: 409

Answers (1)

Tom
Tom

Reputation: 2631

Quite embarrasing. But maybe this will help someone in the future.

We had a security group assigned to the instances which only allowed specific ips to access http ports. The sec groups also apply to instances within the same subnet, so an access rule from instances with the same security group was added which resolved the problem. Alternatively you can also allow access by private ip, for instance.

So if it ever happens that you need to access localhost via the public ip, access must be allowed by the active security group.

Upvotes: 0

Related Questions