diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-07-05 19:31:14 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-07-05 19:31:14 -0600 |
commit | 15409667f720dd1191219c5a32d01e6562f74e8f (patch) | |
tree | 288e7a7e523246d9d6ce57149570ea1d08cfc0b8 /usr/local/www/firewall_nat_1to1_edit.php | |
parent | f60181150d6a64b9bcfaa246311e60a6a546b768 (diff) | |
download | pfsense-15409667f720dd1191219c5a32d01e6562f74e8f.zip pfsense-15409667f720dd1191219c5a32d01e6562f74e8f.tar.gz |
Add per-rule NAT reflection override.
Diffstat (limited to 'usr/local/www/firewall_nat_1to1_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1_edit.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php index ac009c8..4966e14 100755 --- a/usr/local/www/firewall_nat_1to1_edit.php +++ b/usr/local/www/firewall_nat_1to1_edit.php @@ -77,6 +77,7 @@ if (isset($id) && $a_1to1[$id]) { else $pconfig['subnet'] = $a_1to1[$id]['subnet']; $pconfig['descr'] = $a_1to1[$id]['descr']; + $pconfig['natreflection'] = $a_1to1[$id]['natreflection']; } else { $pconfig['subnet'] = 32; $pconfig['interface'] = "wan"; @@ -123,6 +124,11 @@ if ($_POST) { $natent['descr'] = $_POST['descr']; $natent['interface'] = $_POST['interface']; + if ($_POST['natreflection'] == "enable" || $_POST['natreflection'] == "disable") + $natent['natreflection'] = $_POST['natreflection']; + else + unset($natent['natreflection']); + if (isset($id) && $a_1to1[$id]) $a_1to1[$id] = $natent; else @@ -220,6 +226,16 @@ include("head.inc"); <br> <span class="vexpl">You may enter a description here for your reference (not parsed).</span></td> </tr> + <tr> + <td width="22%" valign="top" class="vncell">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"; ?>>use system default</option> + <option value="enable" <?php if ($pconfig['natreflection'] == "enable") echo "selected"; ?>>enable</option> + <option value="disable" <?php if ($pconfig['natreflection'] == "disable") echo "selected"; ?>>disable</option> + </select> + </td> + </tr> <tr> <td width="22%" valign="top"> </td> <td width="78%"> |