How can recover from Linux iptables block? - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Windows Noob (https://www.linux-noob.com/forums/forum-5.html) +--- Forum: Security (https://www.linux-noob.com/forums/forum-74.html) +--- Thread: How can recover from Linux iptables block? (/thread-1083.html) |
How can recover from Linux iptables block? - silicon - 2007-11-30 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 How can recover from Linux iptables block? - xDamox - 2007-11-30 Hello, You will have to remove the files locally if everything is blocked :( How can recover from Linux iptables block? - YeOK - 2007-11-30 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. |