diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-23 21:54:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-23 21:54:49 +0000 |
commit | 855d186191ab74ee7d43c115bcae3bdd20ab19af (patch) | |
tree | f27b8ba7c59869d940a254975b07cf7ecd8b59c5 /etc | |
parent | f80d5538fe7fd16b1de789f9d66b014dd75ebf7a (diff) | |
download | pfsense-855d186191ab74ee7d43c115bcae3bdd20ab19af.zip pfsense-855d186191ab74ee7d43c115bcae3bdd20ab19af.tar.gz |
* Use correct ftp-proxy arguments
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 3ecdc0c..06f1a98 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -569,13 +569,13 @@ function filter_nat_rules_generate() if($int && $external_address && $internal_address) { $natrules .= "# FTP Helper binat\n"; $natrules .= "no binat on {$int} proto tcp from any to {$external_address} port 21\n"; - $helpers = exec("/bin/ps awux | grep \"\-p 21 {$internal_address} {$external_address}\" | grep -v grep"); + $helpers = exec("/bin/ps awux | grep \"\-p 21 -R {$internal_address} -b {$external_address}\" | grep -v grep"); if(!$helpers) { /* Get the ftp queue for this interface */ if (isset($config['interfaces'][$rule['interface']]['ftpqueue'])) $shaper_queue = $config['interfaces'][$rule['interface']]['ftpqueue']; /* else default queue configured on shaper will get this */ - $after_filter_configure_run[] = "/usr/local/sbin/ftp-proxy {$shaper_queue} -p 21 {$internal_address} {$external_address} -T PFFTPPROXY"; + $after_filter_configure_run[] = "/usr/local/sbin/ftp-proxy {$shaper_queue} -p 21 -R {$internal_address} -b {$external_address} -T PFFTPPROXY"; } } } |