Page 1 of 1

Reset firewall to install defaults.

Posted: 2007/04/30 22:15:47
by just1coder
I'm pretty sure I screwed up my install - I can't SSH into a CentOS 4.4 Server box remotely, open up a TCP:80...

Is there any way to reset the firewall - I still thankfully have physical access.

Re: Reset firewall to install defaults.

Posted: 2007/04/30 22:17:18
by just1coder
- selinux is disabled
- iptables is stopped

Reset firewall to install defaults.

Posted: 2007/04/30 22:30:51
by michaelnel
You could always "yum remove iptables; yum install iptables" to get back to "as installed" status. Then do "chkconfig iptables on; service iptables restart". Pretty heavy handed, and there may be a more elegant way, but this "stone axe" approach will work.

This time before screwing around with it, "cp /etc/sysconfig/iptables /etc/sysconfig/iptables.DIST" immediately after reinstalling it.

Or, post your /etc/sysconfig/iptables file here and tell us what you want the firewall to do and what it isn't doing now.