diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2012-04-20 02:38:58 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2012-04-20 02:38:58 -0600 |
commit | 40fa6ddeaca6b2b6ea02109efd07d31daa72da59 (patch) | |
tree | 46e8d52bfce81274ecd88eff26544c38385137e3 /usr/local/www/firewall_nat_edit.php | |
parent | 0c963226b250e209e772a7fd52e9951b8d24d4b4 (diff) | |
download | pfsense-40fa6ddeaca6b2b6ea02109efd07d31daa72da59.zip pfsense-40fa6ddeaca6b2b6ea02109efd07d31daa72da59.tar.gz |
Allow optionally using the type of NAT reflection implementation used for 1:1 mappings with port forwards as well, in addition to allowing the old type, which is still useful in its own way.
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 83cfd73..d0ab5ba 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -330,7 +330,7 @@ if ($_POST) { else unset($natent['nosync']); - if ($_POST['natreflection'] == "enable" || $_POST['natreflection'] == "disable") + if ($_POST['natreflection'] == "enable" || $_POST['natreflection'] == "purenat" || $_POST['natreflection'] == "disable") $natent['natreflection'] = $_POST['natreflection']; else unset($natent['natreflection']); @@ -783,9 +783,10 @@ include("fbegin.inc"); ?> <td width="22%" valign="top" class="vncell"><?=gettext("NAT reflection"); ?></td> <td width="78%" class="vtable"> <select name="natreflection" class="formselect"> - <option value="default" <?php if ($pconfig['natreflection'] != "enable" && $pconfig['natreflection'] != "disable") echo "selected"; ?>><?=gettext("use system default"); ?></option> - <option value="enable" <?php if ($pconfig['natreflection'] == "enable") echo "selected"; ?>><?=gettext("enable"); ?></option> - <option value="disable" <?php if ($pconfig['natreflection'] == "disable") echo "selected"; ?>><?=gettext("disable"); ?></option> + <option value="default" <?php if ($pconfig['natreflection'] != "enable" && $pconfig['natreflection'] != "purenat" && $pconfig['natreflection'] != "disable") echo "selected"; ?>><?=gettext("Use system default"); ?></option> + <option value="enable" <?php if ($pconfig['natreflection'] == "enable") echo "selected"; ?>><?=gettext("Enable (NAT + Proxy)"); ?></option> + <option value="purenat" <?php if ($pconfig['natreflection'] == "purenat") echo "selected"; ?>><?=gettext("Enable (Pure NAT)"); ?></option> + <option value="disable" <?php if ($pconfig['natreflection'] == "disable") echo "selected"; ?>><?=gettext("Disable"); ?></option> </select> </td> </tr> |