diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-19 06:04:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-19 06:04:31 +0000 |
commit | 48cb81150603e3a49e8d20c5308e4d3ef0004673 (patch) | |
tree | 80c7874a0e5342d05644ea0ccffba4cded3ee8ee | |
parent | 25b71fd431e57887b41a3b4ba7bd50b5ee2932c7 (diff) | |
download | pfsense-48cb81150603e3a49e8d20c5308e4d3ef0004673.zip pfsense-48cb81150603e3a49e8d20c5308e4d3ef0004673.tar.gz |
MFC 7283
Stop FTP helper for NAT redirects upon deletion of rule.
-rwxr-xr-x | usr/local/www/firewall_nat.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php index 9b54db2..7b94585 100755 --- a/usr/local/www/firewall_nat.php +++ b/usr/local/www/firewall_nat.php @@ -72,8 +72,8 @@ if (isset($_POST['del_x'])) { foreach ($_POST['rule'] as $rulei) { $target = $rule['target']; $helpers = exec("/bin/ps auwx | grep pftpx | grep {$target} | grep -v grep | cut -d\" \" -f5"); - if(!$helpers) { - /* install a pftpx helper, do not set a rule */ + if($helpers) { + /* kill ftp proxy helper */ mwexec("/bin/kill {$helpers}"); } unset($a_nat[$rulei]); |