Disabling default security on CentOS

lock

Everybody wants their stuff to be secure, until they actually try to use it. That’s the reason for this tidbit about disabling the default security on CentOS.

SELinux is enabled by default on CentOS. To disable it, we need to edit /etc/selinux/config:

SELINUX=disabled

We need to reboot the machine for this to take effect.

The firewall iptables has some default rules we want to get rid of:

iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain

To make these changes permanent, we can save the current rules:

/etc/init.d/iptables save

Leave a Reply

Your email will not be published. Name and Email fields are required.