summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-07-15 16:47:12 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-07-15 16:47:12 -0700
commitf91fcf8baf335132cbdad5d0e54f3c60151b6287 (patch)
tree3df3c3199de5aea53f25bad9765b8dbe53769eb0
parentd56fc457ee0cc865168ea2eb90dd3b68418b0748 (diff)
downloadvyatta-wanloadbalance-f91fcf8baf335132cbdad5d0e54f3c60151b6287.tar.gz
vyatta-wanloadbalance-f91fcf8baf335132cbdad5d0e54f3c60151b6287.zip
fix for bug 4675. Throttle back the initial setting of nat rules during startup of wlb.
-rw-r--r--src/lbdecision.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lbdecision.cc b/src/lbdecision.cc
index 4b64ee4..d4ea102 100644
--- a/src/lbdecision.cc
+++ b/src/lbdecision.cc
@@ -158,6 +158,7 @@ if so then this stuff goes here!
if (lbdata._disable_source_nat == false) {
iter->second._address = fetch_iface_addr(iface);
execute(string("iptables -t nat -A WANLOADBALANCE -m connmark --mark ") + buf + " -j SNAT --to-source " + iter->second._address, stdout);
+ sleep(1); //when creating the first entry it appears that snat will kill an existing connection if multiple commands are issues too quickly
}
++iter;
}