Firewall source nat (outbound), support ranges in plugins. for https://github.com/opnsense/plugins/issues/1749

This commit is contained in:
Ad Schellevis 2020-04-07 22:08:24 +02:00
parent b5e507f7c7
commit d24a546a78

View File

@ -106,6 +106,8 @@ class SNatRule extends Rule
$rule['disabled'] = true;
}
$rule[$fieldname] = "$" . $rule[$fieldname];
} elseif (!empty($rule[$fieldname])) {
$rule[$fieldname] = str_replace('-', ':', $rule[$fieldname]); // range interpretation
}
}
if (empty($rule['poolopts']) || $rule['poolopts'] != "source-hash") {