VPS Iptables Lock-out

Hi I made a mistake and locked myself out to a Xen VPS (centos) created and managed by cloudmin.
Due to a wrong rule in Linux Firewall.

Is there a way to reset this or is a reinstall the only options?

Status: 
Closed (fixed)

Comments

ronald's picture
Submitted by ronald on Wed, 08/04/2010 - 01:24 Pro Licensee

i guess I will reinstall tonight then.

thanks

One thing you could do is :

  1. Shutdown the VPS
  2. Use the System Operations -> Transfer Files page to download the /etc/sysconfig/iptables file
  3. Manually remove the offending rule
  4. Re-upload the file
  5. Start up the VPS again
ronald's picture
Submitted by ronald on Wed, 08/04/2010 - 11:00 Pro Licensee

unfortunately this xen has no File transfers. Probably because it has only Webmin and no virtualmin.
All other instances do have Transfer Files..

I tried the graphical console but that has issues with commands and logins. its pretty much useless and getting odd characters when typing

Ill try the console once more, else Ill do a reinstall.

thanks

ronald's picture
Submitted by ronald on Wed, 08/04/2010 - 11:17 Pro Licensee

allright
I managed to do this over the graphical console. it was hard but the effort was rewarded..
all is fine again

Great!

The "Transfer Files" page should work fine even if Webmin is not installed, as it works by accessing the Xen instance's filesystem directly. However, it only works if the instance is completely down, or running fully.

ronald's picture
Submitted by ronald on Thu, 08/05/2010 - 14:23 Pro Licensee

aha I can see the Transfer Files now that the VPS is totally accessible again.
I did not see it when it was shut down, so that you know (may be by design or a bug then?).

thanks ronald

Automatically closed -- issue fixed for 2 weeks with no activity.