diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 12:53:17 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 12:53:45 -0500 |
commit | 1716852ac3f818dc9fb22f3e4f7eb4301296a3c0 (patch) | |
tree | 86c5ee0c7f847fb8cf80198dd6cce17641257052 /src/usr/local/www/firewall_nat_1to1_edit.php | |
parent | 471e7c3ac7276568c0fea726d699fb63dd87d3eb (diff) | |
download | pfsense-1716852ac3f818dc9fb22f3e4f7eb4301296a3c0.zip pfsense-1716852ac3f818dc9fb22f3e4f7eb4301296a3c0.tar.gz |
Fixed #3887
Diffstat (limited to 'src/usr/local/www/firewall_nat_1to1_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_nat_1to1_edit.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_nat_1to1_edit.php b/src/usr/local/www/firewall_nat_1to1_edit.php index 7e76b35..e747e15 100644 --- a/src/usr/local/www/firewall_nat_1to1_edit.php +++ b/src/usr/local/www/firewall_nat_1to1_edit.php @@ -103,6 +103,7 @@ if (isset($_GET['dup'])) { } if (isset($id) && $a_1to1[$id]) { + $pconfig['nobinat'] = isset($a_1to1[$id]['nobinat']); $pconfig['disabled'] = isset($a_1to1[$id]['disabled']); address_to_pconfig($a_1to1[$id]['source'], $pconfig['src'], @@ -236,6 +237,7 @@ if ($_POST) { if (!$input_errors) { $natent = array(); + $natent['nobinat'] = isset($_POST['nobinat']) ? true:false; $natent['disabled'] = isset($_POST['disabled']) ? true:false; $natent['external'] = $_POST['external']; $natent['descr'] = $_POST['descr']; @@ -393,6 +395,13 @@ $form = new Form(new Form_Button( $section = new Form_Section('Edit NAT 1 to 1 entry'); $section->addInput(new Form_Checkbox( + 'nobinat', + 'Negate', + 'This rule will be excluded from the NAT', + $pconfig['nobinat'] +))->setHelp('Use this to exclude addresses from from a rule that follows this one'); + +$section->addInput(new Form_Checkbox( 'nordr', 'No RDR (NOT)', 'Disable redirection for traffic matching this rule', |