summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-01-29 01:42:52 -0600
committerChris Buechler <cmb@pfsense.org>2016-01-29 01:42:52 -0600
commit0d14e2ac8ee6519d379c5e9bf5e2908c3ff0bcc2 (patch)
treebda25cfd7409b9365b7fecce35fb6cc79145c98f /src/usr/local/www/firewall_nat_edit.php
parent1c1ca39bd5276bdd3519ee1e800093f6173833aa (diff)
downloadpfsense-0d14e2ac8ee6519d379c5e9bf5e2908c3ff0bcc2.zip
pfsense-0d14e2ac8ee6519d379c5e9bf5e2908c3ff0bcc2.tar.gz
Include a tracker ID in new associated firewall rules.
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_edit.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index c23c9d7..2ffbcad 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -491,6 +491,7 @@ if ($_POST) {
// If this is a new rule, create an ID and add the rule
if ($_POST['filter-rule-association'] == 'add-associated') {
$filterent['associated-rule-id'] = $natent['associated-rule-id'] = get_unique_id();
+ $filterent['tracker'] = (int)microtime(true);
$filterent['created'] = make_config_revision_entry(null, gettext("NAT Port Forward"));
$config['filter']['rule'][] = $filterent;
}
OpenPOWER on IntegriCloud