whonix_firewall should add the --wait option to iptables statements

Information

ID: 344
PHID: PHID-TASK-n56w2mnkkvytpazxogrf
Author: nrgaway
Status at Migration Time: resolved
Priority at Migration Time: High

Description

iptables on Debian Jessie support the --wait option which will wait for lock to be released on xtable if another process is currently has a lock on it. This can also prevent any race conditions.

I received a whonix_firewall failure due to this error; only once that I have noticed, but it would most likely be best form to update the whonix_firewall to use the --wait option

From iptables(8) — iptables — Debian bookworm — Debian Manpages

       -w, --wait
              Wait for the xtables lock.  To prevent multiple instances of the
              program from running concurrently, an attempt will  be  made  to
              obtain  an  exclusive  lock  at launch.  By default, the program
              will exit if the lock cannot be obtained.  This option will make
              the program wait until the exclusive lock can be obtained.

Comments


nrgaway

2015-06-06 13:47:05 UTC


Patrick

2015-06-06 14:01:57 UTC


Patrick

2015-06-06 14:11:35 UTC


Patrick

2015-06-06 14:26:05 UTC


Patrick

2015-06-06 14:35:42 UTC


Patrick

2015-06-06 15:21:48 UTC


Patrick

2015-06-06 15:25:19 UTC


nrgaway

2015-06-06 16:55:54 UTC


Patrick

2015-06-07 03:36:58 UTC