Friday 30 March 2012

How to disable SELinux and IPtables ?



If SELinux / iptables is enabled in Linux PC and it is acting as a server, we need to add specific entries to allow each and every type of traffic or easy way is to disable it completely.

To disable SELinux give following commands:

echo 0 > /selinux/enforce

 vim /etc/selinux/config

To disable iptables issue following commands.

 chkconfig iptables off

 service iptables stop