From 32302b57b88e2900620658c8265b20a09dfd1052 Mon Sep 17 00:00:00 2001 From: Darcy Darbyson Date: Thu, 28 Feb 2019 22:30:48 -0500 Subject: [PATCH] Fixed 'xtables lock' warning You can often see the warning `trying to fix ERROR OUTPUT: `Another app is currently holding the xtables lock. Perhaps you want to use the -w option?` on busy servers where iptables is updated frequently. Adding the `-w` options fixes this issue by setting maximum wait to acquire xtables lock before give up --- spamhaus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spamhaus.sh b/spamhaus.sh index 6c4d77f..586bd03 100644 --- a/spamhaus.sh +++ b/spamhaus.sh @@ -5,7 +5,7 @@ # http://www.cyberciti.biz/tips/block-spamming-scanning-with-iptables.html # path to iptables -IPTABLES="/sbin/iptables"; +IPTABLES="/sbin/iptables -w"; # list of known spammers URL="www.spamhaus.org/drop/drop.lasso";