diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-06 20:03:46 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-06 20:03:46 +0000 |
commit | c1ec2c2f80dab2103f497391d0339248239918d5 (patch) | |
tree | d810f5a407be57d24fc35ae76c5d013fa41d33a6 /usr/local/www/interfaces_lan.php | |
parent | 44318b562757b5a0207eeee612b14456ca29c340 (diff) | |
download | pfsense-c1ec2c2f80dab2103f497391d0339248239918d5.zip pfsense-c1ec2c2f80dab2103f497391d0339248239918d5.tar.gz |
MFC 7401
Add support for per interface ftp helper.
Suggested-by: Dan Swartzendruber <dswartz_AT_druber.com>
In-Discussion-with: Bill M, Dan S
Diffstat (limited to 'usr/local/www/interfaces_lan.php')
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index 278bfd8..1133335 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -41,6 +41,8 @@ $pconfig['bridge'] = $lancfg['bridge']; $pconfig['bandwidth'] = $lancfg['bandwidth']; $pconfig['bandwidthtype'] = $lancfg['bandwidthtype']; +$pconfig['disableftpproxy'] = isset($lancfg['disableftpproxy']); + /* Wireless interface? */ if (isset($lancfg['wireless'])) { require("interfaces_wlan.inc"); @@ -105,6 +107,16 @@ if ($_POST) { if (!$input_errors) { + unset($lancfg['disableftpproxy']); + + /* per interface pftpx helper */ + if($_POST['disableftpproxy'] == "yes") { + $lancfg['disableftpproxy'] = true; + system_start_ftp_helpers(); + } else { + system_start_ftp_helpers(); + } + $bridge = discover_bridge($lancfg['if'], filter_translate_type_to_real_interface($lancfg['bridge'])); if($bridge <> "-1") { destroy_bridge($bridge); @@ -230,6 +242,14 @@ function enable_change(enable_over) { <br> The bandwidth setting will define the speed of the interface for traffic shaping. Do not enter your "Internet" bandwidth here, only the physical speed! </td> </tr> + <tr> + <td width="22%" valign="top" class="vncell">FTP Helper</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>Disable the userland FTP-Proxy application</strong> + <br /> + </td> + </tr> <tr> <td width="22%" valign="top"> </td> <td width="78%"> @@ -278,4 +298,4 @@ if ($_POST['apply'] <> "") { } -?>
\ No newline at end of file +?> |