Firewalld Offline

Support for security such as Firewalls and securing linux
Pcoenen
Posts: 16
Joined: 2016/03/05 17:01:46

Firewalld Offline

Post by Pcoenen » 2016/03/05 17:07:01

Hello,

I'm using Firewalld for a while and I never had problems before.

Today I notics that the firewalld service is not active anymore and I can't restart it.

This is the error I get when I enter "systemctl status firewalld"

Code: Select all

# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sat 2016-03-05 17:57:41 CET; 2s ago
  Process: 2291 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 2291 (code=exited, status=0/SUCCESS)

Mar 05 17:57:41 servername systemd[1]: Starting firewalld - dynamic firewall daemon...
Mar 05 17:57:41  servername systemd [1]: Started firewalld - dynamic firewall daemon.
Mar 05 17:57:41 servername systemd firewalld[2291]: 2016-03-05 17:57:41 ERROR: ebtables not usable, disabling ethernet bridge firewall.
Mar 05 17:57:41 servername systemd firewalld[2291]: 2016-03-05 17:57:41 FATAL ERROR: No IPv4 and IPv6 firewall.
Mar 05 17:57:41 servername systemd firewalld[2291]: 2016-03-05 17:57:41 ERROR: Raising SystemExit in run_server

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Firewalld Offline

Post by TrevorH » 2016/03/05 19:33:26

Mar 05 17:57:41 servername systemd firewalld[2291]: 2016-03-05 17:57:41 ERROR: ebtables not usable, disabling ethernet bridge firewall.
Is the ebtables package installed?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Pcoenen
Posts: 16
Joined: 2016/03/05 17:01:46

Re: Firewalld Offline

Post by Pcoenen » 2016/03/07 23:20:53

Thanx and sorry for the slow reply, didn't knew my post was already online

I think it's instaled

"systemctl status ebtables" gives the following result

Code: Select all

[root@server ~]# systemctl status ebtables
● ebtables.service - Ethernet Bridge Filtering tables
   Loaded: loaded (/usr/lib/systemd/system/ebtables.service; disabled; vendor preset: disabled)
   Active: inactive (dead) since Tue 2016-03-08 00:16:50 CET; 4min 36s ago
  Process: 2371 ExecStop=/usr/libexec/ebtables stop (code=exited, status=0/SUCCESS)
  Process: 2362 ExecStart=/usr/libexec/ebtables start (code=exited, status=0/SUCCESS)
 Main PID: 2362 (code=exited, status=0/SUCCESS)

Mar 08 00:16:39 * ebtables[2362]: nat tables: not configured[  OK  ]
Mar 08 00:16:39 * ebtables[2362]: broute tables: not configured[  OK  ]
Mar 08 00:16:39 * systemd[1]: Started Ethernet Bridge Filtering tables.
Mar 08 00:16:50 * systemd[1]: Stopping Ethernet Bridge Filtering tables...
Mar 08 00:16:50 * ebtables[2371]: The kernel doesn't support the ebtables 'filter' table.
Mar 08 00:16:50 * ebtables[2371]: The kernel doesn't support the ebtables 'nat' table.
Mar 08 00:16:50 * ebtables[2371]: The kernel doesn't support the ebtables 'broute' table.
Mar 08 00:16:50 * ebtables[2371]: rmmod: ERROR: Module ebtables is not currently loaded
Mar 08 00:16:50 * systemd[1]: Stopped Ethernet Bridge Filtering tables.
Mar 08 00:16:50 * ebtables[2371]: [FAILED]


User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Firewalld Offline

Post by TrevorH » 2016/03/07 23:36:28

What is the output from uname -a
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Pcoenen
Posts: 16
Joined: 2016/03/05 17:01:46

Re: Firewalld Offline

Post by Pcoenen » 2016/03/08 08:28:53

This gives me the following:

Code: Select all

Linux server.* 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: UK

Re: Firewalld Offline

Post by giulix63 » 2016/03/08 08:53:56

Please, post also the output of

Code: Select all

which iptables ip6tables
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

Pcoenen
Posts: 16
Joined: 2016/03/05 17:01:46

Re: Firewalld Offline

Post by Pcoenen » 2016/03/08 09:00:37

This gives me

Code: Select all

which iptables ip6tables
/usr/sbin/iptables
/usr/sbin/ip6tables
Thanx for the fast reactions !!!

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: UK

Re: Firewalld Offline

Post by giulix63 » 2016/03/08 10:04:23

It looks like the system is trying to configure ebtables, but bails out when it's time to activate it. Could you post the output of the following commands

Code: Select all

ls -l /etc/sysconfig/ebtables*
cat /etc/sysconfig/ebtables-config
lsmod |grep ebtab
run as root. please?
Last edited by giulix63 on 2016/03/08 10:33:13, edited 1 time in total.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Firewalld Offline

Post by TrevorH » 2016/03/08 10:06:26

Also rpm -V ebtables should return no output.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Pcoenen
Posts: 16
Joined: 2016/03/05 17:01:46

Re: Firewalld Offline

Post by Pcoenen » 2016/03/08 10:34:17

Okay, i get this output

Code: Select all

[user@server ~]# ls -l /etc/sysconfig/ebtables*
-rw------- 1 root root 1390 Jun 10  2014 /etc/sysconfig/ebtables-config

Code: Select all

[user@server ~]# cat /etc/sysconfig/ebtables-config
# Save (and possibly restore) in text format.
#   Value: yes|no,  default: yes
# Save the firewall rules in text format to /etc/sysconfig/ebtables
# If EBTABLES_BINARY_FORMAT="no" then restoring the firewall rules# is done using this text format.
EBTABLES_TEXT_FORMAT="yes"

# Save (and restore) in binary format.
#   Value: yes|no,  default: yes
# Save (and restore) the firewall rules in binary format to (and from)
# /etc/sysconfig/ebtables.<chain>. Enabling this option will make
# firewall initialisation a lot faster.
EBTABLES_BINARY_FORMAT="yes"

# Unload modules on restart and stop
#   Value: yes|no,  default: yes
# This option has to be 'yes' to get to a sane state for a firewall
# restart or stop. Only set to 'no' if there are problems unloading netfilter
# modules.
EBTABLES_MODULES_UNLOAD="yes"

# Save current firewall rules on stop.
#   Value: yes|no,  default: no
# Saves all firewall rules if firewall gets stopped
# (e.g. on system shutdown).
EBTABLES_SAVE_ON_STOP="no"

# Save current firewall rules on restart.
#   Value: yes|no,  default: no
# Saves all firewall rules if firewall gets restarted.
EBTABLES_SAVE_ON_RESTART="no"

# Save (and restore) rule counters.
#   Value: yes|no,  default: no
# Save rule counters when saving a kernel table to a file. If the
# rule counters were saved, they will be restored when restoring the table.
EBTABLES_SAVE_COUNTER="no"

Code: Select all

[user@server ~]# rpm -V ebtables
missing   d /usr/share/man/man8/ebtables.8.gz
Thanks in forward !!! :)

Post Reply