Hacker News new | past | comments | ask | show | jobs | submit login
How to blow up a server in one mouse click (scripting.com)
3 points by davewiner on Oct 6, 2010 | hide | past | favorite | 12 comments



The server is running on EC2. As far as I can tell, EC2 does not have a virtual console interface or any other way to rescue a server that blocks all network connections with a firewall.


Virtual machines run on physical machines. Physical machines can have stuff plugged into them and can probably run a VM app.

It's a hassle, sure, but if you're hosting this elsewhere chances are this isn't the first time this has happened, and if you're hosting it yourself then problem solved.


Why would you have to completely re-provision a machine just because you turned the firewall on?

I'm guessing maybe this is a VM?

Either way, I tend to prefer hardware firewalls over software firewalls for this reason ESPECIALLY on Windows. With a "real" firewall, you can generally maintain a connection to the firewall (if you've set it up right), and that way if you firewall off the wrong port and need to reverse something you can still do so.


Isn't that what he says?

"And this is a completely virtual machine, there's no keyboard, no big red switch, no physical reality with which to fix this."


Oops, yeah. I missed the "virtual" part. That's what I get for reading/commenting while on a conference call and working on a remote desktop session...


I think changing firewall rules remotely is one of those things where it pays to be extra-careful, and then make sure you have access to the console (or physical access) for when you inevitably mess it up and lock yourself out.


What? How does he not have access to a serial console or something?


Why couldn't he reach port 5337 if the firewall was turned off? Doesn't make sense.


Probably because he forgot to open that port in his EC2 security group.

Machines belong to security groups, and security groups define which ports have access to the outside world - which is why you don't need the Windows firewall at all when running an EC2 instance.


True. Maybe he assumed that when the firewall was off, everything was blocked (forgetting about the remote desktop).


It's a good question why 5337 wasn't accessible, but it wasn't.

That's why I was clicking around looking for reasons when the OS asked this question (which I answered too quickly without thinking).

No matter, I've already provisioned a new server to take its place, and terminated the old one.


If you can get a command prompt, you can just run:

netsh firewall set opmode disable

Tragedy averted.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: