Blocking access from a wordpress website to an HTML (Grafana Panel) code on my EC2 instance.

0

I've been trying to solve this access problem, in an HTML code (Grafana Panel) from my EC2 instance on the Amazon Web Server. I have a wordpress website, hosted on Hostinger and I am trying to put a Grafana panel (a type of open source dashboard that is running on my instance) on that site, through an html code, when I type html code in the place for the website shows the Grafana panel, an error like this appears. Connection to ec2-cc-ccc-ttt.sa-east-1.compute.amazonaws.com was refused . I've looked all over the internet, how to unlock website access on AWS and I haven't found anything about it, does anyone know how to unlock access to html code, on my EC2 instance? My friend managed to access the HTML code from another computer, that is, the EC2 instance is only refusing access, when it is requested from a wordpress website.

2개 답변
0

Hi - It seems like a networking issue since the EC2 instance is only refusing access, when it is requested from a wordpress website which may be coming from a different networking settings. Seems it is being able to access from a different computer which you can compare. Please check the following for the troubelshooting

  1. The instance's IP address or hostname is correct.
  2. The security group of the instance allows incoming traffic on required port
  3. The network ACLs of instance subnet allows incoming traffic on required port and allow port for the outgoing traffic.
  4. The route table of the instance’s subnet is configured properly to provide connectivity between EC2 instance and the client
  5. There isn't a firewall blocking the connection
profile pictureAWS
전문가
답변함 9달 전
0

Hi. Security controls to consider advise that Amazon EC2 instances should not have a public IPv4 address, so first step suggested is to publish your Grafana dashboard using a Load Balancer and consider implementing a Web Application Firewal to mitigate application level risks.
This means EC2 does not need to be public, you can configure security groups to give access from the Load Balancer to your instance. The URL you will embed on your HTML will be the one created by the Load Balancer, this might require to check that your dashboard is available with alternat hostnames (this is to be checked on your EC2.

profile pictureAWS
답변함 9달 전

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

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

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

관련 콘텐츠