summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-11 00:25:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-11 00:25:48 +0000
commitf55cccc4a42a77c8a36205815a932f5c7adf23cc (patch)
tree2b43bc128bd29df80e7df3ef90ec638b8fe4d553
parent57d9d7115457b8c0f3acb233a827a2d15709368b (diff)
downloadpfsense-f55cccc4a42a77c8a36205815a932f5c7adf23cc.zip
pfsense-f55cccc4a42a77c8a36205815a932f5c7adf23cc.tar.gz
Allow FTP-Proxy to be disabled under advanced menu.
-rw-r--r--etc/inc/filter.inc3
-rwxr-xr-xusr/local/www/system_advanced.php17
2 files changed, 17 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 7263116..b502af9 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -286,7 +286,8 @@ function filter_nat_rules_generate() {
$natrules = "";
- $natrules .= "rdr on " . $lanif . " proto tcp from any to any port 21 -> 127.0.0.1 port 8021\n";
+ if(isset($config['system']['disableftpproxy']))
+ $natrules .= "rdr on " . $lanif . " proto tcp from any to any port 21 -> 127.0.0.1 port 8021\n";
/* any 1:1 mappings? */
if (is_array($config['nat']['onetoone'])) {
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index f7d6fbc..3238f00 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -32,6 +32,7 @@
require("guiconfig.inc");
$pconfig['disablefilter'] = $config['system']['disablefilter'];
+$pconfig['disableftpproxy'] = $config['system']['disableftpproxy'];
$pconfig['filteringbridge_enable'] = isset($config['bridge']['filteringbridge']);
$pconfig['ipv6nat_enable'] = isset($config['diag']['ipv6nat']['enable']);
$pconfig['ipv6nat_ipaddr'] = $config['diag']['ipv6nat']['ipaddr'];
@@ -67,12 +68,16 @@ if ($_POST) {
}
if (!$input_errors) {
- echo $_POST['disablefilter'];
if($_POST['disablefilter'] == "yes") {
$config['system']['disablefilter'] = "enabled";
} else {
unset($config['system']['disablefilter']);
}
+ if($_POST['disableftpproxy'] == "yes") {
+ $config['system']['disableftpproxy'] = "enabled";
+ } else {
+ unset($config['system']['disableftpproxy']);
+ }
$config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false;
$config['diag']['ipv6nat']['enable'] = $_POST['ipv6nat_enable'] ? true : false;
$config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr'];
@@ -147,7 +152,15 @@ function enable_change(enable_over) {
and there's <strong>NO</strong> support for them.</span></p><br>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
-
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">FTP Proxy</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">&nbsp;</td>
+ <td width="78%" class="vtable">
+ <input name="disableftpproxy" type="checkbox" id="disableftpproxy" value="yes" <?php if (isset($config['system']['disableftpproxy'])) echo "checked"; ?> onclick="enable_change(false)">
+ <strong class="vexpl">Disable the userland FTP-Proxy application</strong><br>
+ </tr>
<tr>
<td colspan="2" valign="top" class="listtopic">Disable Firewalling</td>
</tr>
OpenPOWER on IntegriCloud