Unable to access an app UI running on my EC2 instance through the public IP address

0

Hello. I am trying to run Elasticsearch and Kibana on my local EC2 instance. I have them both installed but when I run them, Kibana asks me to visit http://localhost:5601/?code=092017 in my browser. I substitute localhost with the public IP address of my EC2 instance but the desired page won't load—instead I get a page that says "This site can't be reached".

I've tried to open up port 5601 through the security group, but I didn't have any luck with that. Perhaps, I'm not doing it right. But I've kind of run out of things to try. Note that when I run the command curl http://localhost:5601 from the command line inside my EC2 instance, I get some output that looks like there should be a webpage displayed at that address. So, I do think the issue is just that I can't access the page from outside the EC2 instance itself.

Matt_J
asked a year ago969 views
1 Answer
1

Does your subnet's route table have a route to the Internet Gateway? Are your subnet NACLs fully open or allowing ephemeral ports?

EXPERT
answered a year ago
  • One of the routes in the route table has as a "Destination" 0.0.0.0/0 and as a "Target" igw-076ee1e02b061c9d4. When I click on the "Target" it takes me to an "Internet gateways" page. So, I think that's a "yes" to your first question.

    Under the Network ACL's tab I have two inbound rules, both of which have "Type" set to "All Traffic". "Port Range" is also set to "All". However, in the "Allow/Deny" column, one of the rules is set to "Deny" while the other is set to "Allow". So, I'm unsure how to answer your second question. Also note that the "Rule Number" of the rule that is set to "Deny" is set to *. I also tried to remove this rule, but it does not allow for this operation. I am only able to remove the rule that is set to "Allow".

  • https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html shows what the default NACL rules should look like. Your inbound ones sound fine, but you need to check outbound also.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions