Skip to content

Unable to Connect Http ports Even after allowing in Security group.

0

Hi , We are running Apache webserver in EC2 instance. Suddenly We are unable to connect to HTTP ports (80,443) . We have checked everything normal from server .There is no restrictions in NACL . And we have allowed ports in Security groups to public. but still unable to connect via Public IP "Note: We are able to telnet the ports locally as well as using private IP. From public IP not able to connect . Please help us on this.

asked 2 years ago395 views

2 Answers
1

What OS are you running on?

Your host firewall could be blocking inbound HTTP and HTTPS. Configure firewall to allow inbound HTTP and HTTPS. Or you can stop firewall daemon.

For Ubuntu

sudo ufw disable

For RHEL, Rocky, Alma ...

sudo systemctl stop firewalld
AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

  • Os is "Ubuntu 16.04.6 LTS". And we have disabled firewall already. But still not able to connect.

0

Maybe Apache is down? Try to SSH to the instance and check with local host. According to description of security group and NACL you are going everything right. Just double check the port settings. Also for more advanced troubleshooting check internet gateway and route tables

AWS

answered 2 years ago

  • Apache is up and able to access locally. Routing tables,NACL,Security gropups everything looks good everything is allowed there.. Checked internet gateway by creating test server in same network/Subnet we are able to connect to test server with same Security group and Subnet. We have tried a reboot also but no luck.

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.