summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-18 12:25:40 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-18 12:25:40 +0000
commitb3ef71a07c7f2e66a31e37c2b8fdd37c94bdd13c (patch)
tree993b9b12a4ed8e88fd065a49366bc64ffb458cab
parent07f35d576e2132578d78e9f89ed3174c990084c8 (diff)
downloadpfsense-b3ef71a07c7f2e66a31e37c2b8fdd37c94bdd13c.zip
pfsense-b3ef71a07c7f2e66a31e37c2b8fdd37c94bdd13c.tar.gz
Fix an issue with rules generation while logging is enabled.
Reported-by: forum user qluk
-rw-r--r--etc/inc/filter.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 092f09b..467a7c6 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1573,22 +1573,22 @@ function generate_user_filter_rule($rule, $ngcounter) {
if ($type != "pass" && $type != "block" && $type != "reject") {
/* default (for older rules) is pass */
- $type = "pass";
+ $type = "pass ";
}
if ($type == "reject") {
/* special reject packet */
if ($rule['protocol'] == "tcp") {
- $aline['type'] = "block return-rst";
+ $aline['type'] = "block return-rst ";
} else if ($rule['protocol'] == "udp") {
- $aline['type'] = "block return-icmp";
+ $aline['type'] = "block return-icmp ";
} else if ($rule['protocol'] == "tcp/udp") {
- $aline['type'] = "block return";
+ $aline['type'] = "block return ";
} else {
- $aline['type'] = "block";
+ $aline['type'] = "block ";
}
} else {
- $aline['type'] = $type;
+ $aline['type'] = $type . " ";
}
if (isset($rule['floating']) && $rule['floating'] == "yes") {
OpenPOWER on IntegriCloud