Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

firewalld crashes on Bullseye

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
klowet
Posts: 2
Joined: 2022-05-15 09:21

firewalld crashes on Bullseye

#1 Post by klowet »

Hi

I use firewall-cmd to manage the firewall on Bullseye. On some servers, I get sometimes (no specific time) these error messages in syslog:

Code: Select all

May 12 13:26:35 server01 firewalld[437]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.8.7 (nf_tables): invalid port/service `0-65535' specified#012Error occurred at line: 2#012Try `iptables-restore -h' or 'iptables-restore --help' for more information.
May 12 13:26:35 server01 firewalld[437]: ERROR: COMMAND_FAILED: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.8.7 (nf_tables): invalid port/service `0-65535' specified#012Error occurred at line: 2#012Try `iptables-restore -h' or 'iptables-restore --help' for more information.
5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
It causes firewalld.service to stop working and leaving it in a stopped state.

When it happens, I can just start the firewalld proces again and everything seems fine. But after a few weeks, this error returns.
What can be the cause? What can I check?

Thanks

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: firewalld crashes on Bullseye

#2 Post by reinob »

Seems to be a bug of fail2ban (https://github.com/fail2ban/fail2ban/issues/3047).
Are you using fail2ban?

If so, I guess you'll need to patch firewallcmd-ipset.conf to make it work. If you are using stable, maybe it's worth to report a bug, in case this has not been reported yet.

klowet
Posts: 2
Joined: 2022-05-15 09:21

Re: firewalld crashes on Bullseye

#3 Post by klowet »

Indeed, I'm using fail2ban. I reported bug #1011054.

Thanks

Post Reply