From 69258759be866f75b11ba24480d72a5bea082362 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 11 Oct 2005 16:28:23 +0000 Subject: Launch a pftpx helper on the $extaddr port with -b Ticket #602 --- etc/inc/filter.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'etc/inc') 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 = ""; + } } } -- cgit v1.1