RedHat 8.1 - FireWall & SELinux


This tutorial will guide you on how to Disable FireWall and it's service on RedHat 8.1 Linux server.

Please follow the below steps to disable Firewall on RedHat 8.1 Linux server:

1. Check firewalld service status

[root@worldwidelinux ]# systemctl status firewalld.service

We have to modify FireWall settings manually for incoming and outgoing requests for services.

2. Stop FireWall Service

[root@worldwidelinux ]# systemctl stop firewalld.service

3. Disable Firewall Service

[root@worldwidelinux ]# systemctl disable firewalld.service


This tutorial will guide you on how to Disable SELinux on RedHat 8.1 Linux server. After successful RedHat 8.1 operating system installation this is the first step we need to do it on linux server.

[root@worldwidelinux ]# getenforce

Please follow the below steps to disable SELinux on RedHat 8.1 Linux server:

1. Open selinux config file using vim editor as shown in the image given below:

[root@worldwidelinux ]# vim /etc/selinux/config

2. Change a value of SELINUX from enforcing to disabled.

Press Esc key then type :wq! and press Enter key to save and close the file.

3. Reboot a server

You can manually reboot server by pressing power button or execute a reboot command in terminal.

[root@worldwidelinux ]# reboot

4. Check status of SELinux

Execute getenforce command to check the status of SELinux and make sure it is disabled.