Revision f55cccc4
Added by Scott Ullrich over 20 years ago
etc/inc/filter.inc | ||
---|---|---|
286 | 286 |
|
287 | 287 |
$natrules = ""; |
288 | 288 |
|
289 |
$natrules .= "rdr on " . $lanif . " proto tcp from any to any port 21 -> 127.0.0.1 port 8021\n"; |
|
289 |
if(isset($config['system']['disableftpproxy'])) |
|
290 |
$natrules .= "rdr on " . $lanif . " proto tcp from any to any port 21 -> 127.0.0.1 port 8021\n"; |
|
290 | 291 |
|
291 | 292 |
/* any 1:1 mappings? */ |
292 | 293 |
if (is_array($config['nat']['onetoone'])) { |
usr/local/www/system_advanced.php | ||
---|---|---|
32 | 32 |
require("guiconfig.inc"); |
33 | 33 |
|
34 | 34 |
$pconfig['disablefilter'] = $config['system']['disablefilter']; |
35 |
$pconfig['disableftpproxy'] = $config['system']['disableftpproxy']; |
|
35 | 36 |
$pconfig['filteringbridge_enable'] = isset($config['bridge']['filteringbridge']); |
36 | 37 |
$pconfig['ipv6nat_enable'] = isset($config['diag']['ipv6nat']['enable']); |
37 | 38 |
$pconfig['ipv6nat_ipaddr'] = $config['diag']['ipv6nat']['ipaddr']; |
... | ... | |
67 | 68 |
} |
68 | 69 |
|
69 | 70 |
if (!$input_errors) { |
70 |
echo $_POST['disablefilter']; |
|
71 | 71 |
if($_POST['disablefilter'] == "yes") { |
72 | 72 |
$config['system']['disablefilter'] = "enabled"; |
73 | 73 |
} else { |
74 | 74 |
unset($config['system']['disablefilter']); |
75 | 75 |
} |
76 |
if($_POST['disableftpproxy'] == "yes") { |
|
77 |
$config['system']['disableftpproxy'] = "enabled"; |
|
78 |
} else { |
|
79 |
unset($config['system']['disableftpproxy']); |
|
80 |
} |
|
76 | 81 |
$config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false; |
77 | 82 |
$config['diag']['ipv6nat']['enable'] = $_POST['ipv6nat_enable'] ? true : false; |
78 | 83 |
$config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr']; |
... | ... | |
147 | 152 |
and there's <strong>NO</strong> support for them.</span></p><br> |
148 | 153 |
|
149 | 154 |
<table width="100%" border="0" cellpadding="6" cellspacing="0"> |
150 |
|
|
155 |
<tr> |
|
156 |
<td colspan="2" valign="top" class="listtopic">FTP Proxy</td> |
|
157 |
</tr> |
|
158 |
<tr> |
|
159 |
<td width="22%" valign="top" class="vncell"> </td> |
|
160 |
<td width="78%" class="vtable"> |
|
161 |
<input name="disableftpproxy" type="checkbox" id="disableftpproxy" value="yes" <?php if (isset($config['system']['disableftpproxy'])) echo "checked"; ?> onclick="enable_change(false)"> |
|
162 |
<strong class="vexpl">Disable the userland FTP-Proxy application</strong><br> |
|
163 |
</tr> |
|
151 | 164 |
<tr> |
152 | 165 |
<td colspan="2" valign="top" class="listtopic">Disable Firewalling</td> |
153 | 166 |
</tr> |
Also available in: Unified diff
Allow FTP-Proxy to be disabled under advanced menu.