diff options
author | Bill Marquette <billm@pfsense.org> | 2005-02-20 17:29:49 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-02-20 17:29:49 +0000 |
commit | b17a19eb9e54993f1ce9990c4f62229ec4f9d512 (patch) | |
tree | 15159a5d8a4e41b8788e657e2d5b01d531d0e73f | |
parent | e9f252faa0b354437a05944dccf8084530a7fbcf (diff) | |
download | pfsense-b17a19eb9e54993f1ce9990c4f62229ec4f9d512.zip pfsense-b17a19eb9e54993f1ce9990c4f62229ec4f9d512.tar.gz |
fix dest caching when 'not' is used in outbound filter
-rw-r--r-- | etc/inc/filter.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index d9384a6..801723a 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -729,12 +729,11 @@ function filter_nat_rules_generate() { foreach ($config['nat']['advancedoutbound']['rule'] as $obent) { $src = $obent['source']['network']; - if (!isset($obent['destination']['any'])) { - if (isset($obent['destination']['not'])) - $dst = "!" . $obent['destination']['network']; - else - $dst = $obent['destination']['network']; - } + if (isset($obent['destination']['not']) && !isset($obent['destination']['any'])) + $dst = "!" . $obent['destination']['network']; + else + $dst = $obent['destination']['network']; + if (!$obent['interface'] || ($obent['interface'] == "wan")) $natif = $wanif; |