summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-07 22:34:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-07 22:34:04 +0000
commitc8f7ec29ea22822565abcd44f1f1fdf90ffc6b78 (patch)
treee6b5d4d6251962abd2f0f005117457707e67d047
parentcf7f3ebc265b36765d872bdca895ab09a0889603 (diff)
downloadpfsense-c8f7ec29ea22822565abcd44f1f1fdf90ffc6b78.zip
pfsense-c8f7ec29ea22822565abcd44f1f1fdf90ffc6b78.tar.gz
Support FTP on bridges
-rw-r--r--etc/inc/config.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 8e112c0..15a0828 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1306,6 +1306,8 @@ EOD;
function system_start_ftp_helpers() {
require_once("interfaces.inc");
global $config, $g;
+
+ mwexec("/usr/bin/killall ftpsesame");
/* build an array of interfaces to work with */
$iflist = array("lan" => "LAN");
@@ -1338,13 +1340,14 @@ function system_start_ftp_helpers() {
$helpers = exec("/bin/ps awux | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\"");
if(!$helpers && $ip)
mwexec("/usr/local/sbin/pftpx -c {$port} -g 8021 {$ip}");
+ if(!$helpers && !$ip)
+ mwexec("/usr/local/sbin/ftpsesame -i $int");
$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