summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-07 22:27:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-07 22:27:23 +0000
commitcf7f3ebc265b36765d872bdca895ab09a0889603 (patch)
tree5383b30e488f1fee80336db023a12736f8ac4a90 /etc/inc
parent51fd526dd5bc3da69947c53634ac12c553903e08 (diff)
downloadpfsense-cf7f3ebc265b36765d872bdca895ab09a0889603.zip
pfsense-cf7f3ebc265b36765d872bdca895ab09a0889603.tar.gz
Support FTP on bridges
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 778e88e..8e112c0 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1318,7 +1318,7 @@ function system_start_ftp_helpers() {
/* if the ftp proxy is disabled for this interface then kill pftpx
* instance and continue. note that the helpers for port forwards are
* launched in a different sequence so we are filtering them out
- * here by not including -c {$port} -g 8021 first.
+ * here by not including -c {$port} -g 8021 first.
*/
$port = 8021 + $interface_counter;
if(isset($config['interfaces'][$ifname]['disableftpproxy'])) {
@@ -1341,7 +1341,9 @@ function system_start_ftp_helpers() {
$interface_counter++;
}
}
+ /* support bridged interfaces. even they need ftp mojo */
$num_bridges = find_number_of_created_bridges();
+ $num_bridges++;
mwexec("/usr/bin/killall ftpsesame");
for($x=0; $x<$num_bridges; $x++) {
mwexec("/usr/local/sbin/ftpsesame -i bridge{$x}");
OpenPOWER on IntegriCloud