-1

Before i was able to connect to my EC2 instance, then after i flush the IPTABLE, i can't access it anymore, every time i try to connect, it get TIME OUT.

Error i receive:

FAIL: TIMEOUT
[SSH] FAIL: xx.xx.xx.xx:2020 - No connection was made because the operation was stopped.

Problem trying to solve before this problem happen.
Couldn't access my WHM through IP, but i had access to SSH, i read somewhere you need to flush IPTABLE, then the problem start raising and could't access SSH.

Steps i have taken (failed)

  1. I have already Restart the Instance.
  2. I try to see if IP work in Browser(tried Safari, Firfox, Chrome), same the IP time out in browser.
  3. I have checked Security Group and I Allow Traffic from anywhere in Inbound & Outbound.
  4. Google Search for 2 Days now, no answer that i can relate to, cause i need access to SSH, most of the answer are about Command line.
  5. Change IP of Instance (i know this is really un-useful).
  6. Try to Understand "Get System Log", but couldn't understand it well, cause everything in there seems fine.
  7. Try to Access using Public DNS
  8. Create a new Security Group with Open VPC connection

Server info:
Centos 6
Running WHM & cPanel

A few consideration that I'm currently thinking it could be are (no information are online about these consideration online)

  1. VPC Set-up of Security Group
  2. Amazon side Bug (i doubt it)
brian
  • 1
  • 1
  • 2

1 Answers1

2

You've flushed all of your iptables rules, including the default ALLOW rules. You'll need to do a full recovery of these systems in order to re-gain access.

If you have not saved the iptables rule changes to disk, there's a chance that rebooting will resolve the issue. If that is not the case, though, you'll need to go through the process I outline in this answer to recover the instance.

As an aside, if you're worried about losing the contents of this server, you're doing sysadmin wrong. You should always be able to lose a server without significant data loss. This holds true with VPS servers as well as physical servers.

EEAA
  • 110,608