summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-06-10 16:58:13 -0700
committerMichael Larson <slioch@eng-140.vyatta.com>2008-06-10 16:58:13 -0700
commit98982243bb131c56f94f4bbcf89a58499fe27694 (patch)
treea75c8d8077a239435c66e8f2767526840c62ed0e /scripts
parent5510da8abc49783dc9b5b4f49577c668d3cb88fa (diff)
downloadvyatta-wanloadbalance-98982243bb131c56f94f4bbcf89a58499fe27694.tar.gz
vyatta-wanloadbalance-98982243bb131c56f94f4bbcf89a58499fe27694.zip
modified prerouting decisions to work with connmark. user needs to specify inbound interface now (although
this isn't currently required).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl
index 2c64a5e..2339ec5 100644
--- a/scripts/vyatta-wanloadbalance.pl
+++ b/scripts/vyatta-wanloadbalance.pl
@@ -160,6 +160,12 @@ sub write_rules {
}
print FILE_LCK "\t}\n";
+ #inbound-interface
+ $option = $config->returnValue("$rule inbound-interface");
+ if (defined $option) {
+ print FILE_LCK "\tinbound-interface " . $option . "\n"
+ }
+
#interface
$config->setLevel("load-balancing wan rule $rule interface");
my @eths = $config->listNodes();