Stop and Start RHEL7 firewall
The firewall on Redhat 7 Linux system can be stopped by a following command:
[root@TEST ~]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
Stopped firewall will start again after system's reboot. To start firewall on Redhat 7 Linux system use:
[root@TEST ~]# service firewalld start
Redirecting to /bin/systemctl start firewalld.service
Disable and Enable RHEL7 firewall
In order to completely disable RHEL7 firewall so it would no load after reboot run:
[root@TEST ~]# systemctl disable firewalld
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'
Now the firewall would not start after system's reboot. To enable the firewall again run:
[root@TEST ~]# systemctl enable firewalld
ln -s '/usr/lib/systemd/system/firewalld.service' '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
ln -s '/usr/lib/systemd/system/firewalld.service' '/etc/systemd/system/basic.target.wants/firewalld.service'
No comments:
Post a Comment