diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-08 17:49:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-08 17:49:28 +0000 |
commit | dd78523c20aa4513c4b69cd6c6f03cdacbf403e2 (patch) | |
tree | 27159470eaf7e696c1d2daee0e945c32933e95c0 | |
parent | 01b64593f267c9f2fb2866dbd561f8e077a6505d (diff) | |
download | pfsense-dd78523c20aa4513c4b69cd6c6f03cdacbf403e2.zip pfsense-dd78523c20aa4513c4b69cd6c6f03cdacbf403e2.tar.gz |
Add ftp-sesame ftp helper.
-rw-r--r-- | etc/inc/config.inc | 12 | ||||
-rwxr-xr-x | etc/rc | 3 | ||||
-rwxr-xr-x | etc/rc.bootup | 3 |
3 files changed, 15 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index b401050..18d9fe2 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -832,4 +832,16 @@ EOD; } } +function system_start_ftp_helpers() { + global $config; + if(!$config['system']['disableftpproxy']) return; + if ($g['booting']) + echo "Starting INETD and FTP Helpers for FTP-PROXY..."; + $wanif = get_real_wan_interface(); + mwexec("/usr/sbin/inetd -wW -C 60"); + mwexec("/usr/bin/killall ftpsesame 2>/dev/null"); + mwexec("/usr/local/sbin/ftpsesame -i {$wanif} -q ftpproxy"); +} + + ?>
\ No newline at end of file @@ -67,9 +67,6 @@ cd /var/run && cp /dev/null utmp && chmod 644 utmp # let the PHP-based configuration subsystem set up the system now /etc/rc.bootup -echo Starting INETD for FTP-PROXY... -/usr/sbin/inetd -wW -C 60 - echo Starting Secure Shell Services... /etc/sshd diff --git a/etc/rc.bootup b/etc/rc.bootup index 94928ac..fd8a064 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -161,6 +161,9 @@ /* run any shell commands specified in config.xml */ system_do_shell_commands(); + /* start ftp proxy helpers if they are enabled */ + system_start_ftp_helpers(); + /* done */ unlink("{$g['varrun_path']}/booting"); ?> |