Why is my AWS instance not reachable?

10,644

Did you allow ICMP and other traffic in security group settings? You should check the security group settings. It looks like you are using a default security group as seen on the 2nd row of 2nd column of the table on your screenshot. You should click "view rules" and adjust the rules there.

Share:
10,644

Related videos on Youtube

YD8877
Author by

YD8877

Updated on September 18, 2022

Comments

  • YD8877
    YD8877 over 1 year

    Yesterday, I created a new instance but I cannot connect to it. Tried pinging it from my computer, online ping sites etc but it is just not reachable.

    In the AWS console. everything seems to be functioning normally. The reachability check is successful. Screenshots are given below :

    AWS Console screenshot

    enter image description here

    I tried using different AMIs, regions but to no avail. I just cannot connect to any AWS instance.

    Please help. I'm clueless right now.

    enter image description here

    • cjc
      cjc over 11 years
      Have you adjusted the Security Group for that instance to allow connections from your location? I don't recall if ICMP (e.g., ping) is allowed by default.
    • YD8877
      YD8877 over 11 years
      The reason i tried ping is because the host was not reachable via ssh. I have another instance in another account and its 'pingable'. How do i adjust the security group to allow connections ?
    • cjc
      cjc over 11 years
      There's a Security Group in the navigation plane of the control panel. Create a new one or change the default. When you start up an instance, you will be asked what Security Groups apply to that instance.
    • YD8877
      YD8877 over 11 years
      added screenshot for the security group incoming settings. looks okay to me ?
  • YD8877
    YD8877 over 11 years
    added screenshot for the security group incoming settings
  • Alex
    Alex over 11 years
    Well you seem to be dropping all incoming connections
  • YD8877
    YD8877 over 11 years
    i'm sorry i dont understand. Are the security settings wrong ?
  • YD8877
    YD8877 over 11 years
    the security settings blocked all the ports ! I thought it was the other way round ! Thanks ! Accepted answer for you.
  • Alex
    Alex over 11 years
    Not exactly wrong but just too restrictive, you only allow incoming connections from sg-.... which I guess is related to your Amazon infrastructure but not the public web. You should a set of rules to allow hosts from 0.0.0.0/0 to access certain TCP ports or to ping the hosts in this security group.