summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-19 06:04:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-19 06:04:31 +0000
commit48cb81150603e3a49e8d20c5308e4d3ef0004673 (patch)
tree80c7874a0e5342d05644ea0ccffba4cded3ee8ee /usr/local/www/firewall_nat.php
parent25b71fd431e57887b41a3b4ba7bd50b5ee2932c7 (diff)
downloadpfsense-48cb81150603e3a49e8d20c5308e4d3ef0004673.zip
pfsense-48cb81150603e3a49e8d20c5308e4d3ef0004673.tar.gz
MFC 7283
Stop FTP helper for NAT redirects upon deletion of rule.
Diffstat (limited to 'usr/local/www/firewall_nat.php')
-rwxr-xr-xusr/local/www/firewall_nat.php4
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]);
OpenPOWER on IntegriCloud