LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable iptables? (https://www.linuxquestions.org/questions/linux-newbie-8/disable-iptables-536474/)

gubak 03-11-2007 04:23 AM

Disable iptables?
 
Hi!

I have CentOS in textual mode. Through the installation process I have checked the "firewall enabled" field, but now I want to disable it.

Does anyone know how to disable firewall (iptables) in textual mode?

Thank you!

fukawi2 03-11-2007 04:29 AM

As root, type this:

Code:

service iptables stop
OR
Code:

/etc/init.d/iptables stop

mether 03-11-2007 02:38 PM

if in case u got the SeLinux enabled u can disable it using :

#setenforce 0

Then edit the /etc/sysconfig/selinux file and disable selinux permanent.

fukawi2 03-12-2007 09:12 PM

To disable SELinux completely, you need to disable it in the kernel by passing "selinux=0" to the kernel in the GRUB configuration.

jasonbain 03-20-2007 01:57 AM

apache "DocumentRoot must be a directory"
 
this is what I had to do to get apache to be able to use a NFS mount as DocumentRoot. I edited the /etc/sysconfig/selinx file and disabled selinux and rebooted. It now works fine.


All times are GMT -5. The time now is 03:11 AM.