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 /etc/inc | |
parent | 01b64593f267c9f2fb2866dbd561f8e077a6505d (diff) | |
download | pfsense-dd78523c20aa4513c4b69cd6c6f03cdacbf403e2.zip pfsense-dd78523c20aa4513c4b69cd6c6f03cdacbf403e2.tar.gz |
Add ftp-sesame ftp helper.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 12 |
1 files changed, 12 insertions, 0 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 |