summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-08 22:39:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-08 22:39:02 +0000
commiteec69055431b23191701e1eef9c7ad66bb1fed5a (patch)
tree59590d01f2ff153593db0522229965b36f110d72 /etc/rc.newwanip
parentd052c74ef86bc306a9f0cf3b6773663037d5a188 (diff)
downloadpfsense-eec69055431b23191701e1eef9c7ad66bb1fed5a.zip
pfsense-eec69055431b23191701e1eef9c7ad66bb1fed5a.tar.gz
Killoff old incoming FTP helpers
Ticket #772
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 629be85..070b3e2 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -45,6 +45,14 @@
$interface = "wan";
}
+ /* grab the prior ip for pftpx tests */
+ if(file_exists("/tmp/rc.newwanip_oldip")) {
+ $old_ip = file_get_contents("/tmp/rc.newwanip_oldip");
+ $helpers = exec("/bin/ps awux | grep {$old_ip} | grep -v grep | cut -d\" \" -f6");
+ mwexec("kill " . trim($helpers);
+ unlink("/tmp/rc.newwanip_oldip");
+ }
+
/* reconfigure IPsec tunnels */
vpn_ipsec_configure(true);
OpenPOWER on IntegriCloud