Product SiteDocumentation Site

2.2.4. Disable Security During Testing

To simplify this guide and focus on the aspects directly connected to clustering, we will now disable the machine’s firewall and SELinux installation.

Warning

These actions create significant security issues and should not be performed on machines that will be exposed to the outside world.
[root@pcmk-1 ~]# setenforce 0
[root@pcmk-1 ~]# sed -i.bak "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config
[root@pcmk-1 ~]# systemctl disable firewalld.service
[root@pcmk-1 ~]# systemctl stop firewalld.service
[root@pcmk-1 ~]# iptables --flush

Note

If you are using Fedora 17 or earlier or are using the iptables service for your firewall, the commands would be:
[root@pcmk-1 ~]# setenforce 0
[root@pcmk-1 ~]# sed -i.bak "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config
[root@pcmk-1 ~]# systemctl disable iptables.service
[root@pcmk-1 ~]# rm -f /etc/systemd/system/basic.target.wants/iptables.service
[root@pcmk-1 ~]# systemctl stop iptables.service
[root@pcmk-1 ~]# iptables --flush