FirewallD is not running in CentOS Linux - Centos 7 firewalld not working
by asv@ics.cab

performed the below steps.

1. yum install firewalld
2. systemctl start firewalld
3. systemctl status firewalld -l

firewall-cmd --state

firewall-cmd --list-all-zones

I tested the functionality by adding and removing the http rule and testing the TCP connection to port 80 on the new VPS (guest VM) server.

firewall-cmd --remove-service=http
success

firewall-cmd --add-service=http
success

System info:
# cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

# cat /proc/sys/kernel/osrelease
2.6.32-042stab093.4

# systemctl -l status firewalld -l
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since Sun 2014-11-16 01:52:02 CST; 1h 7min ago
Main PID: 126 (firewalld)
CGroup: /system.slice/firewalld.service
`-126 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Nov 16 01:49:29 horizon systemd[1]: Starting firewalld - dynamic firewall daemon...
Nov 16 01:49:29 horizon systemd[1]: Started firewalld - dynamic firewall daemon.
Nov 16 01:49:29 horizon firewalld[1466]: 2014-11-16 01:49:29 ERROR: ebtables not usable, disabling ethernet bridge firewall.

# yum list firewalld
...
Installed Packages
firewalld.noarch 0.3.9-7.el7 @base



P.S. The original post probably should have gone in the "CentOS 7 - Security Support" forum as it says it's for "Support for security such as Firewalls and securing linux".
 

How to Start and Enable Firewalld on CentOS 7

I
Pre-Flight Check
  • These instructions are intended specifically for enabling and starting firewalld CentOS 7.
  • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

 

Enable Firewalld

To enable firewalld, run the following command as root:

systemctl enable firewalld

Start Firewalld

To start firewalld, run the following command as root:

systemctl start firewalld

Check the Status of Firewalld

To check the status of firewalld, run the following command as root:

systemctl status firewalld

 
Leave a comment
Comments
  • Guest - Zachery Grandin

    Good thing, I am agree with you.
    Nature

  • Guest - Zachery Grandin

    Good thing, I am agree with you.
    Nature

  • Guest - Zachery Grandin

    Good thing, I am agree with you.
    Nature

  • Guest - Zachery Grandin

    Good thing, I am agree with you.
    Nature

  • Guest - Zachery Grandin

    Good thing, I am agree with you.
    Nature

  • Guest - Zachery Grandin

    Good thing, I am agree with you.
    Nature

  • Guest - Enrrique24

    I am glad to read this article. google

  • Guest - Enrrique24

    I am glad to read this article. google

  • Guest - Enrrique24

    I am glad to read this article. google

Load More