summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@eng-140.vyatta.com>2008-07-10 10:09:49 -0700
committerroot <root@eng-140.vyatta.com>2008-07-10 10:09:49 -0700
commit37ce9ca021a4849e792bcb96a1ee7a1cebdf6b42 (patch)
treeb79e841748cfd51279487a63471e0101afe85c0a
parentcd7f3636037fc37c7bf0042cc56ee00cb042eefa (diff)
downloadvyatta-wanloadbalance-37ce9ca021a4849e792bcb96a1ee7a1cebdf6b42.tar.gz
vyatta-wanloadbalance-37ce9ca021a4849e792bcb96a1ee7a1cebdf6b42.zip
my bad. last commit I changed the conntrack module name to uppercase which caused the snat rules to not match the iptables module and therefore fail on load. this should fix the problem, tested icmp with standard configuration and default routes, works now.
-rw-r--r--src/lbdecision.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lbdecision.cc b/src/lbdecision.cc
index 616f243..9bf56cf 100644
--- a/src/lbdecision.cc
+++ b/src/lbdecision.cc
@@ -144,7 +144,7 @@ if so then this stuff goes here!
sprintf(hex_buf,"%X",ct);
execute(string("ip rule add fwmark ") + hex_buf + " table " + buf, stdout);
- execute(string("iptables -t nat -A WANLOADBALANCE -m CONNMARK --mark ") + buf + " -j SNAT --to-source " + fetch_iface_addr(iface), stdout);
+ execute(string("iptables -t nat -A WANLOADBALANCE -m connmark --mark ") + buf + " -j SNAT --to-source " + fetch_iface_addr(iface), stdout);
++ct;
++iter;