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
질문됨 일 년 전1068회 조회
1개 답변
1

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

전문가
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠