[root@fedora ~]# systemctl | grep firewall
firewalld.service loaded active running firewal d – dynamic firewall daemon
[root@fedora ~]#
[root@fedora ~]# systemctl stop firewalld.service
[root@fedora ~]# systemctl start firewalld.service
[root@fedora ~]#
[root@fedora ~]# systemctl disable firewalld.service
rm ‘/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service’
rm ‘/etc/systemd/system/basic.target.wants/firewalld.service’
[root@fedora ~]#
[root@fedora ~]# sed -i ‘s/^SELINUX=.*/SELINUX=disabled/g’ /etc/sysconfig/selinux && cat /etc/sysconfig/selinux
# 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
# 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
[root@fedora ~]# setenforce 0
[root@fedora ~]# systemctl disable NetworkManager.service
rm ‘/etc/systemd/system/multi-user.target.wants/NetworkManager.service’
rm ‘/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service’
rm ‘/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service’
Move to init3 runlevel
# remove the default systemd target, which is (probably) the graphical.target
rm /etc/systemd/system/default.target
# now, let’s make the SystmV’s runlevel 3 to be the default one
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
# switch back to graphical (SystemV runlevel 5)
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
Recent Comments