How To verify Firewall is Enable/Start or Disable/Stop in CentOS 7 - MS&Linux

Breaking

Saturday, October 27, 2018

How To verify Firewall is Enable/Start or Disable/Stop in CentOS 7


Recently i have faced problem while acceding a portal on Browser and after spending some time on different Linux forums, i think may be its because of my firewall which stopping non secure traffic to make contact with my server which is on live IP.

Message which i counter every time is given below.
Hmm. We’re having trouble finding that site.

We can’t connect to the server at https://MyIP:2087

If that address is correct, here are three other things you can try:

    Try again later.
    Check your network connection.
    If you are connected but behind a firewall, check that Firefox has permission to access the Web.
"Netfillter" is Linx firewall name and we can access it by using "iptables"command. Here we are looking for checking firewall status in CentOS 7.

If you are login as a root user than use this command to Check the Status of Firewall in Centos 7.
#firewall-cmd --state
else use $sudo firewall-cmd --state

Status will be shown in this style
not running
OR
type  #systemctl status firewalld

How to Stop/Disable Firewall Temporally in CentOS 7

You can temporarily stop the FirewallD service and this will be effective only for the session with the following command:
$ sudo systemctl stop firewalld

How to Stop/Disable Firewall Permanently in CentOS 7

Step 1: Stop the FirewallD service with: $ sudo systemctl stop firewalld
Step 2: Disable the FirewallD service to start automatically on system boot: $ sudo systemctl disable firewalld
Step 2: Mask the FirewallD service which will prevent the firewall from being started by another services:$ sudo systemctl mask --now firewalld

No comments:

Post a Comment