Disabling default security on CentOS
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:
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: