summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-11 16:28:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-11 16:28:23 +0000
commit69258759be866f75b11ba24480d72a5bea082362 (patch)
tree696bad3412ab078d25c995088074752f338819de /etc/inc
parent6d526f3843d312fe2a16273b11491b339c5cfba5 (diff)
downloadpfsense-69258759be866f75b11ba24480d72a5bea082362.zip
pfsense-69258759be866f75b11ba24480d72a5bea082362.tar.gz
Launch a pftpx helper on the $extaddr port with -b
Ticket #602
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 1ed52cb..5be9a7a 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -601,8 +601,11 @@ function filter_nat_rules_generate() {
if($extport[0] == "21" and !$config['system']['disableftpproxy']) {
$helpers = exec("ps aux | grep pftpx | grep {$target}");
echo "{$helpers}\n";
- if(!$helpers)
- mwexec_bg("/usr/local/sbin/pftpx -c 21 -f {$target} -g 21");
+ if(!$helpers) {
+ /* install a pftpx helper, do not set a rule */
+ mwexec_bg("/usr/local/sbin/pftpx -b {$extaddr} -c 21 -f {$target} -g 21");
+ $natrules = "";
+ }
}
}
OpenPOWER on IntegriCloud