summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-12 20:40:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-12 20:40:52 +0000
commita605aac029fc28450dc6c67b6e9b7a7950715156 (patch)
tree4478ff2cb92d09dd172be3136efa63e36cd9454d
parentd7f2a8dc886bea38d490fc0b2fa612874411a10b (diff)
downloadpfsense-a605aac029fc28450dc6c67b6e9b7a7950715156.zip
pfsense-a605aac029fc28450dc6c67b6e9b7a7950715156.tar.gz
Correctly define not rules with aliases.
-rw-r--r--etc/inc/filter.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 1082556..bbb4545 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1274,6 +1274,7 @@ EOD;
if (strstr($rule['source']['network'], "opt")) {
$src = $optcfg[$rule['source']['network']]['sa'] . "/" .
$optcfg[$rule['source']['network']]['sn'];
+ if (isset($rule['source']['not'])) $src = "!" . $src;
} else {
switch ($rule['source']['network']) {
case 'lan':
@@ -1283,6 +1284,7 @@ EOD;
$src = "$pptpsa/$pptpsn";
break;
}
+ if (isset($rule['source']['not'])) $src = "!" . $src;
}
} else if ($rule['source']['address']) {
$not = "";
@@ -1332,6 +1334,7 @@ EOD;
if (strstr($rule['destination']['network'], "opt")) {
$dst = $optcfg[$rule['destination']['network']]['sa'] . "/" .
$optcfg[$rule['destination']['network']]['sn'];
+ if (isset($rule['destination']['not'])) $dst = " !" . $dst;
} else {
switch ($rule['destination']['network']) {
case 'lan':
@@ -1342,6 +1345,7 @@ EOD;
break;
}
}
+ if (isset($rule['destination']['not'])) $dst = " !" . $dst;
} else if ($rule['destination']['address']) {
$not = "";
if (isset($rule['destination']['not'])) $not = "! ";
OpenPOWER on IntegriCloud