diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-07-15 16:47:12 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-15 16:47:12 -0700 |
commit | f91fcf8baf335132cbdad5d0e54f3c60151b6287 (patch) | |
tree | 3df3c3199de5aea53f25bad9765b8dbe53769eb0 | |
parent | d56fc457ee0cc865168ea2eb90dd3b68418b0748 (diff) | |
download | vyatta-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.cc | 1 |
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; } |