From 56117d5e053f1fdf2577dc89d7f4aa37faf0d5e3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Jan 2019 11:14:57 +0200 Subject: Pass -w (wait) option to iptables This is now necessary since we may be running multiple instances. --- bbot/agent/machine.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx index df23fde..db51e0b 100644 --- a/bbot/agent/machine.cxx +++ b/bbot/agent/machine.cxx @@ -47,6 +47,7 @@ namespace bbot // e = run_io_exit (t, 0, ofd, ofd, "sudo", "iptables", + "-w", // Wait for xtables lock. "-t", "nat", a, "PREROUTING", "-i", br, @@ -65,6 +66,7 @@ namespace bbot // e = run_io_exit (t, 0, ofd, ofd, "sudo", "iptables", + "-w", a, "FORWARD", "-d", addr, "-o", br, -- cgit v1.1