aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/agent/machine.cxx2
1 files changed, 2 insertions, 0 deletions
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,