Debian Buster: Erro no Firewalld: ‘/usr/sbin/ip6tables-restore -w -n’

Detalhes da Distro onde Ocorreu o Erro

Seguem detalhes do debian usado:

elder@sidoc:~$ uname -a
Linux sidoc 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
elder@debianTeste:~$ hostnamectl 
   Static hostname: debianTeste
         Icon name: computer-server
           Chassis: server     
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-13-amd64
      Architecture: x86-64

 

Erro Ocorrido

 

O erro ERROR: ‘/usr/sbin/iptables-restore -w -n’ failed: iptables-restore v1.8.2 (nf_tables):” ocorre no firewalld instalado no Debian 10. O interessante é que possuo diversos servidores com Debian 10 e apenas em um tive o problema abaixo

 

elder@sidoc:~$ sudo systemctl status  firewalld 
 firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2021-07-21 11:12:35 -03; 36min ago
     Docs: man:firewalld(1)
 Main PID: 13999 (firewalld)
    Tasks: 2 (limit: 4652)
   Memory: 22.5M
   CGroup: /system.slice/firewalld.service
           └─13999 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid

jul 21 11:12:35 sidoc systemd[1]: Starting firewalld - dynamic firewall daemon...
jul 21 11:12:35 sidoc systemd[1]: Started firewalld - dynamic firewall daemon.
jul 21 11:12:35 sidoc firewalld[13999]: ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.8.2 (nf_tables): 
                                        line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
                                        line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT
jul 21 11:12:35 sidoc firewalld[13999]: ERROR: '/usr/sbin/ip6tables-restore -w -n' failed: ip6tables-restore v1.8.2 (nf_tables): 
                                        line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
                                        line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT
jul 21 11:12:36 sidoc firewalld[13999]: ERROR: COMMAND_FAILED: '/usr/sbin/ip6tables-restore -w -n' failed: ip6tables-restore v1.8.2 (nf_tables): 
                                        line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
                                        line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT
jul 21 11:12:36 sidoc firewalld[13999]: ERROR: INVALID_ZONE
elder@sidoc:~$ sudo firewall-cmd --reload
Error: COMMAND_FAILED: '/usr/sbin/ip6tables-restore -w -n' failed: ip6tables-restore v1.8.2 (nf_tables): 
line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT

 

Solução Alternativa

A solução encontrada até o momento  foi editar o arquivo  /etc/firewalld/firewalld.conf  e alterar o valor de IndividualCalls=no para IndividualCalls=yes

Essa é um trecho explicativo encontrado no arquivo que fala sobre a função de IndividualCalls:

# IndividualCalls
# Do not use combined -restore calls, but individual calls. This increases the
# time that is needed to apply changes and to start the daemon, but is good for
# debugging.
# Default: no
IndividualCalls=yes

Esse erro foi comentando na página de bugs do Debian, através desse link:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914694

 

 

 

Fontes: allsupported

 

Leitor voraz e um dos administradores do GNU/Linux Brasil no Whatsapp, facebook, youtube e nesse dito site: www.gnulinuxbrasil.com.br

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *