diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2013-09-16 20:46:33 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2013-09-16 20:46:33 +0200 |
commit | 6ae8c4f281e9931fa9650e841453082ffd086ec4 (patch) | |
tree | 7f656104fa81e81dd18c8325602d8773254486d6 /usr/local/www/firewall_nat_out_edit.php | |
parent | 67e5e3c6dbf7aa05a4b4fbaa2ebcee8328aa5648 (diff) | |
download | pfsense-6ae8c4f281e9931fa9650e841453082ffd086ec4.zip pfsense-6ae8c4f281e9931fa9650e841453082ffd086ec4.tar.gz |
outboundnat, disable checkbox
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 2d1d89f..4e7c099 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -100,6 +100,7 @@ if (isset($id) && $a_out[$id]) { } $pconfig['descr'] = $a_out[$id]['descr']; $pconfig['nonat'] = $a_out[$id]['nonat']; + $pconfig['disabled'] = isset($a_out[$id]['disabled']); $pconfig['staticnatport'] = isset($a_out[$id]['staticnatport']); $pconfig['nosync'] = isset($a_out[$id]['nosync']); } else { @@ -261,6 +262,12 @@ if ($_POST) { } else { unset($natent['staticnatport']); } + + if(isset($_POST['disabled'])) { + $natent['disabled'] = true; + } else { + unset($natent['disabled']); + } /* if user has selected not nat, set it here */ if(isset($_POST['nonat'])) { @@ -435,6 +442,14 @@ function poolopts_change() { // Allow extending of the firewall edit page and include custom input validation pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/htmlphpearly"); ?> + <tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Disabled");?></td> + <td width="78%" class="vtable"> + <input name="disabled" type="checkbox" id="disabled" value="yes" <?php if ($pconfig['disabled']) echo "checked=\"checked\""; ?> /> + <strong><?=gettext("Disable this rule");?></strong><br /> + <span class="vexpl"><?=gettext("Set this option to disable this rule without removing it from the list.");?></span> + </td> + </tr> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Do not NAT");?></td> <td width="78%" class="vtable"> |