diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-03 23:44:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-03 23:44:07 +0000 |
commit | 8160853ac4b2d70a8084617b50cedbebfbad3968 (patch) | |
tree | 7d4436037897f10882f97b11a4bca9669706d49b /etc | |
parent | 2f87ff6931c8dda91ee939aab01d0f8a8c4aedc4 (diff) | |
download | pfsense-8160853ac4b2d70a8084617b50cedbebfbad3968.zip pfsense-8160853ac4b2d70a8084617b50cedbebfbad3968.tar.gz |
set state-policy if-bound for outbound load balancing
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 292dd10..490cc25 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -104,6 +104,11 @@ function filter_configure() { $rules .= setup_logging_interfaces(); + if ($config['nat']['outgoingloadbalancing']['rule'] <> "" and + isset($config['nat']['outgoingloadbalancing']['enable'])) { + $rules.= "set state-policy if-bound\n"; + } + $optimization = "normal"; if($config['system']['optimization'] <> "") $optimization = $config['system']['optimization']; $rules.= "set optimization " . $optimization . "\n"; |