Jump to content
Sign in to follow this  
silicon

How can recover from Linux iptables block?

Recommended Posts

I have a hired a linux web server host from a company. I logged through ssh and modified iptables.

By mistake, it is not configured and blocked all ports, including ssh, ftp, http etc.

 

I am able to ping and reboot remotely.

 

All I need to do is to delete the /etc/sysconfig/iptables file and reboot the server.

 

How can I achieve this? I have already raised a support ticket.

 

If they know how to recover, it is fine. Otherwise, I wanted to guide them.

 

Previously for such mistake, i used to login using a CD during boot process.

Now I forget how to do.

 

Is there a way the web hosting company fix using console operation?

 

All i need is to recover my system asap.

 

What are my options and how can I do it?

 

Thanks

 

Silicon

Share this post


Link to post
Share on other sites

Most hosts will simply do an OS re-install. A lot will charge you for it. If your doing iptables work on a remote server, it can be a good idea to add a crontab entry to disable iptables say every 30 minutes while you are testing and making the rules. Have made that mistake once myself, my host had a nice remote OS install option though, and iptables is one of the first things i setup, so luckily it didn't cost me anything.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...