summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-05-02 16:08:25 -0400
committerjim-p <jimp@pfsense.org>2017-05-02 16:08:25 -0400
commitacc7db22483099f189d4aa6625ec3292561f6b7b (patch)
tree7de857108d0c789cf6418ffdb991d8906f5616ce
parent7cfca820e633dd99e749a6568a791013961738b7 (diff)
downloadpfsense-acc7db22483099f189d4aa6625ec3292561f6b7b.zip
pfsense-acc7db22483099f189d4aa6625ec3292561f6b7b.tar.gz
Work around broken wizard rules for ticket #7434
-rw-r--r--src/etc/inc/filter.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/inc/filter.inc b/src/etc/inc/filter.inc
index 96669b4..8404b78 100644
--- a/src/etc/inc/filter.inc
+++ b/src/etc/inc/filter.inc
@@ -2759,6 +2759,12 @@ function filter_generate_user_rule($rule) {
return "# {$error_text}";
}
}
+
+ /* Work around broken wizard rules. See https://redmine.pfsense.org/issues/7434 */
+ if ($rule['destination']['port'] == "137-139-137-139") {
+ $rule['destination']['port'] = "137-139";
+ }
+
if ($rule['destination']['port']
&& !is_port_or_range(str_replace("-", ":", $rule['destination']['port']))) {
$error_text = "";
OpenPOWER on IntegriCloud