summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-23 21:54:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-23 21:54:49 +0000
commit855d186191ab74ee7d43c115bcae3bdd20ab19af (patch)
treef27b8ba7c59869d940a254975b07cf7ecd8b59c5 /etc
parentf80d5538fe7fd16b1de789f9d66b014dd75ebf7a (diff)
downloadpfsense-855d186191ab74ee7d43c115bcae3bdd20ab19af.zip
pfsense-855d186191ab74ee7d43c115bcae3bdd20ab19af.tar.gz
* Use correct ftp-proxy arguments
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
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";
}
}
}
OpenPOWER on IntegriCloud