CSF ConfigServer Firewall

Disable a Firewall In Red Hat Enterprise Linux / CentOS

RHEL 6.x and beyond:

A Linux firewall is an integrated collection of security measures designed to prevent unauthorized electronic access to a networked computer system. Red hat Linux kernel has firewall called iptables. It can be disabled by typing following command (login as root user):
# service iptables stop
To turn it on type the following command:
# service iptables start
To disable firewall permanently, enter:
# chkconfig iptables off
# service iptables stop

RHEL 7.x+

As we all know that, CentOS / RHEL 7 both are completely systemd based, So We will have to use few systemd related commands to disable firewalld and enable iptables service.

1. Disable Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl mask firewalld

2. Stop Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl stop firewalld

 

One thought on “Disable a Firewall In Red Hat Enterprise Linux / CentOS”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.