Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EC2 instance inbound rule not working

I have an Apache server listening on port 10801 (running on Amazon linux EC2 instance). I have updated the inbound rule for the security group with custom TCP rule to allow all traffic to port 10801. The process is listening on port 10801

>> sudo netstat -tulpn | grep :10801
tcp        0      0 :::10801                    :::*                        LISTEN      24534/httpd

When i hit the port number from my browser, it simply spins and fails. I see multiple questions like this and almost every one asks to update the security group which i have done already. Still unable to reach the service through port 10801. Everything works if i run the server on port 80. Seems like im missing something here, any help is appreciated.

like image 558
broun Avatar asked Jun 24 '17 07:06

broun


1 Answers

Its working now, guess there was a long lag for the rules to become effective. From AWS documentation (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html#security-group-rules):

You can add and remove rules at any time. Your changes are automatically applied to the instances associated with the security group after a short period.

like image 99
broun Avatar answered Oct 13 '22 01:10

broun