summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-03-20 13:24:12 -0400
committerjim-p <jimp@pfsense.org>2013-03-20 13:26:16 -0400
commitba1d9714c5a96d892a6a80157d542f2dbe4fb71c (patch)
tree079bdc26e13959e111de0c3e70e1523e80ed1f16 /usr/local/www/firewall_nat_edit.php
parent919ff1f07070287ee1408ae4d8e530efa756106f (diff)
downloadpfsense-ba1d9714c5a96d892a6a80157d542f2dbe4fb71c.zip
pfsense-ba1d9714c5a96d892a6a80157d542f2dbe4fb71c.tar.gz
Track user/time a firewall rule was created and last updated, and show this information at the bottom of the page when viewing the firewall rule. Have various places in the system that create rules add a proper entry to indicate their origin.
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index f4b4587..29ca7a5 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -409,6 +409,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['created'] = make_config_revision_entry(null, gettext("NAT Port Forward"));
$config['filter']['rule'][] = $filterent;
}
OpenPOWER on IntegriCloud