- 最新
- 最多得票
- 最多評論
Hello,
Here is additional information and steps required to troubleshoot and resolve this issue.
Verify VPC network configuration is correct by checking:
-
Security Groups - Check that traffic is allowed from your IP on port 80. Security Groups are stateless so you will only need to allow in the inbound direct and the response would automatically be allowed. Verify that your source IP is still the same as what is in the security group.
-
Network Access Control Lists - NACLs should allow inbound traffic on port 80 and outbound to ephemeral ports 1024 - 65535
-
Route table - Route table needs to have default route 0.0.0.0/0 pointing to an IGW.
-
Public IP - Instance should also have a public IP or Elastic IP assigned.
-
Enable VPC flow logs [1] - VPC flow logs will provide details of the traffic sent and received by your instance. You can filter for your source IP address and confirm if traffic from your source instance is reaching the instance and if there is any response. Any traffic that is blocked due to a NACL or SG will also have a status of REJECT in the flow logs.
Once you have checked the above steps this rules out your VPC networking configuration from the issue and further investigation is required on the instance or application. I advise starting with the steps below:
-
The command below is used to check that the HTTPD server is running and listening for traffic from any IP on port 80
sudo netstat -tlpn
-
The command below is used to check that the HTTPD server is Active
sudo service httpd status
Kindly investigate the error seen in the browser when connecting.
I have also included a link [2] below for more information on troubleshooting connection issues to an instance.
References:
[1] Flow logs can publish flow log data directly to Amazon CloudWatch: https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs-cwl.html
[2]Troubleshoot connecting to your instance: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
相關內容
- 已提問 1 年前
- 已提問 6 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前