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_opt.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_opt.php')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index bfcaed6..3add7d3 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -61,6 +61,7 @@ $pconfig['blockbogons'] = isset($optcfg['blockbogons']); $pconfig['spoofmac'] = $optcfg['spoofmac']; $pconfig['mtu'] = $optcfg['mtu']; +$pconfig['disableftpproxy'] = isset($optcfg['disableftpproxy']); /* Wireless interface? */ if (isset($optcfg['wireless'])) { @@ -171,6 +172,15 @@ if ($_POST) { } unset($optcfg['dhcphostname']); + unset($optcfg['disableftpproxy']); + + /* per interface pftpx helper */ + if($_POST['disableftpproxy'] == "yes") { + $optcfg['disableftpproxy'] = true; + system_start_ftp_helpers(); + } else { + system_start_ftp_helpers(); + } $optcfg['descr'] = remove_bad_chars($_POST['descr']); $optcfg['bridge'] = $_POST['bridge']; @@ -413,7 +423,16 @@ function type_change(enable_change,enable_change_pptp) { </select> <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> + </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%"> <input name="index" type="hidden" value="<?=$index;?>"> |