summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-21 21:12:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-21 21:12:34 +0000
commitdd447edef809e3e7a9faf71b87088a03bfd34133 (patch)
treec57997195b11c3d116a24b55fbd0428b6c8c4213 /usr/local/www/firewall_nat_1to1_edit.php
parent6ef708eca0894135b727e0bde245bffd6c25b721 (diff)
downloadpfsense-dd447edef809e3e7a9faf71b87088a03bfd34133.zip
pfsense-dd447edef809e3e7a9faf71b87088a03bfd34133.tar.gz
* Add useftphelper support which will add a no binat rule to prevent port
21 nattig * Launch ftp-proxy to listen on the external ip address port 21
Diffstat (limited to 'usr/local/www/firewall_nat_1to1_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1_edit.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php
index 04abdd7..e3ca0e6 100755
--- a/usr/local/www/firewall_nat_1to1_edit.php
+++ b/usr/local/www/firewall_nat_1to1_edit.php
@@ -60,6 +60,7 @@ if (isset($id) && $a_1to1[$id]) {
else
$pconfig['subnet'] = $a_1to1[$id]['subnet'];
$pconfig['descr'] = $a_1to1[$id]['descr'];
+ $pconfig['useftphelper'] = $a_1to1[$id]['useftphelper'];
} else {
$pconfig['subnet'] = 32;
$pconfig['interface'] = "wan";
@@ -120,6 +121,7 @@ if ($_POST) {
$natent['internal'] = $_POST['internal'];
$natent['subnet'] = $_POST['subnet'];
$natent['descr'] = $_POST['descr'];
+ $natent['useftphelper'] = $_POST['useftphelper'];
$natent['interface'] = $_POST['interface'];
if (isset($id) && $a_1to1[$id])
@@ -184,6 +186,14 @@ include("head.inc");
<br>
<span class="vexpl">Enter the internal (LAN) subnet for the 1:1 mapping. The subnet size specified for the external subnet also applies to the internal subnet (they have to be the same).</span></td>
</tr>
+
+ <tr>
+ <td width="22%" valign="top" class="vncell">Use FTP-Helper</td>
+ <td width="78%" class="vtable">
+ <input name="useftphelper" type="checkbox" class="formfld unknown" id="useftphelper" <?php if($pconfig['useftphelper']) echo " CHECKED";?> >
+ <br><span class="vexpl">Checking this will launch a FTP Helper to assist in PASV NAT rewriting for the FTP protocol.</span></td>
+ </tr>
+
<tr>
<td width="22%" valign="top" class="vncell">Description</td>
<td width="78%" class="vtable">
OpenPOWER on IntegriCloud