Iptables is lock. cant restart

Hi all,

I have an issue with my iptables.

when I am running iptables -vnL I saw the following message:

Another app is currently holding the xtables lock. Perhaps you want to use the -w option?

tried to restart the service but the restart failed:

iptables.service - IPv4 firewall with iptables
** Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)**
** Active: failed (Result: exit-code) since Tue 2023-06-06 11:28:54 EEST; 3min 21s ago**
** Process: 32522 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=2)**
** Process: 17835 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=1/FAILURE)**
** Main PID: 17835 (code=exited, status=1/FAILURE)**

Jun 06 11:28:23 iptables.init[17835]: Another app is currently holding the xtables lock; still 31s 0us time ahead to have a chance to grab the lock…
Jun 06 11:28:33 iptables.init[17835]: Another app is currently holding the xtables lock; still 21s 0us time ahead to have a chance to grab the lock…
Jun 06 11:28:43 iptables.init[17835]: Another app is currently holding the xtables lock; still 11s 0us time ahead to have a chance to grab the lock…
Jun 06 11:28:53 iptables.init[17835]: Another app is currently holding the xtables lock; still 1s 0us time ahead to have a chance to grab the lock…
Jun 06 11:28:54 iptables.init[17835]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
Jun 06 11:28:54 iptables.init[17835]: [FAILED]
Jun 06 11:28:54 systemd[1]: iptables.service: main process exited, code=exited, status=1/FAILURE
Jun 06 11:28:54 systemd[1]: Failed to start IPv4 firewall with iptables.
Jun 06 11:28:54 systemd[1]: Unit iptables.service entered failed state.
Jun 06 11:28:54 systemd[1]: iptables.service failed.

Anyone here knows how to release this lock?
Thanks in advance.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.