diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-07 22:27:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-07 22:27:23 +0000 |
commit | cf7f3ebc265b36765d872bdca895ab09a0889603 (patch) | |
tree | 5383b30e488f1fee80336db023a12736f8ac4a90 /etc/inc | |
parent | 51fd526dd5bc3da69947c53634ac12c553903e08 (diff) | |
download | pfsense-cf7f3ebc265b36765d872bdca895ab09a0889603.zip pfsense-cf7f3ebc265b36765d872bdca895ab09a0889603.tar.gz |
Support FTP on bridges
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 4 |
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}"); |