summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-29 16:17:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-29 16:17:56 +0000
commita53c02196ab519af35efc18be9f597bdf4044558 (patch)
treea8f228dec1a81880b21631522f5a00a15278a0aa /etc/inc/pfsense-utils.inc
parenta0ff31f252411bec5d1af14fbfcddffaf34229f4 (diff)
downloadpfsense-a53c02196ab519af35efc18be9f597bdf4044558.zip
pfsense-a53c02196ab519af35efc18be9f597bdf4044558.tar.gz
s/!/not/ for not based rules (tdr)
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 788192e..d3f7ae9 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -253,7 +253,7 @@ function tdr_create_ipfw_rule($rule, $type) {
if (strstr($rule['source']['network'], "opt")) {
$src = $optcfg[$rule['source']['network']]['sa'] . "/" .
$optcfg[$rule['source']['network']]['sn'];
- if (isset($rule['source']['not'])) $src = " !{$src}";
+ if (isset($rule['source']['not'])) $src = " not {$src}";
/* check for opt$NUMip here */
$matches = "";
if (preg_match("/opt([0-9999])ip/", $rule['source']['network'], $matches)) {
@@ -279,7 +279,7 @@ function tdr_create_ipfw_rule($rule, $type) {
$src = "{$pppoesa}/{$pppoesn}";
break;
}
- if (isset($rule['source']['not'])) $src = "!{$src}";
+ if (isset($rule['source']['not'])) $src = " not {$src}";
}
} else if ($rule['source']['address']) {
$expsrc = alias_expand_value($rule['source']['address']);
@@ -363,7 +363,7 @@ function tdr_create_ipfw_rule($rule, $type) {
$real_int = convert_friendly_interface_to_real_interface_name("opt{$optnum}");
$dst = find_interface_ip($real_int);
}
- if (isset($rule['destination']['not'])) $dst = " !{$dst}";
+ if (isset($rule['destination']['not'])) $dst = " not {$dst}";
} else {
switch ($rule['destination']['network']) {
case 'wanip':
@@ -382,7 +382,7 @@ function tdr_create_ipfw_rule($rule, $type) {
$dst = "{$ppoesa}/{$pppoesn}";
break;
}
- if (isset($rule['destination']['not'])) $dst = " !{$dst}";
+ if (isset($rule['destination']['not'])) $dst = " not {$dst}";
}
} else if ($rule['destination']['address']) {
$expdst = alias_expand_value($rule['destination']['address']);
OpenPOWER on IntegriCloud