20 janv. 2016

[RHEL/CENTOS 7] Désactiver SELinux et Firewalld (iptables)

Je continue mes péripéties sur CentOS 7... Dans mon cas j'avais besoin de désactiver SELINUX et le Firewall.



Désactiver le Firewall 
# systemctl stop firewalld
# systemctl disable firewalld
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'
 Désactiver SELINUX

éditer : /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.

SELINUX=disabled
# change

# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Redémarrer la machine:

# reboot
Conclusion : Par rapport à CentOS 6
  • SELINUX, on ne change rien par contre
  • IPTABLES devient FIREWALLD

Aucun commentaire:

Enregistrer un commentaire