-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)
4
  • is it EBS backed? May 16, 2014 at 21:42
  • @WaleedHamra No i don't have any EBS Snapshot, but the EBS Volumes are still running
    – brian
    May 16, 2014 at 21:43
  • 1
    if it's an EBS backed instance, you can mount the volume in another instance, and edit the files... create an iptables fix in the autostart scripts.. May 16, 2014 at 21:50
  • 1
    @WaleedHamra Thank you, EEAA has provide me with the info. Thanks again for your contribution.
    – brian
    May 16, 2014 at 21:58

1 Answer 1

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.

12
  • I have Clients and There Website Files in there, How can i do this without damaging any users?
    – brian
    May 16, 2014 at 21:46
  • I added an edit for you...
    – EEAA
    May 16, 2014 at 21:51
  • thank you, let me go head and try your guideline, and i really appreciate if you show me where can i find more information on sysadmin
    – brian
    May 16, 2014 at 21:56
  • When i create instance and trying to attach the First(main) volume i get an error "Error attaching volume: 'vol-XXXX6522' with Marketplace codes may not be attached as a secondary device."
    – brian
    May 16, 2014 at 22:11
  • You're using a marketplace image. You'll need to go through the vendor then.
    – EEAA
    May 16, 2014 at 22:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .