diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-11 16:28:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-11 16:28:23 +0000 |
commit | 69258759be866f75b11ba24480d72a5bea082362 (patch) | |
tree | 696bad3412ab078d25c995088074752f338819de /etc/inc | |
parent | 6d526f3843d312fe2a16273b11491b339c5cfba5 (diff) | |
download | pfsense-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.inc | 7 |
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 = ""; + } } } |