diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-08 22:39:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-08 22:39:02 +0000 |
commit | eec69055431b23191701e1eef9c7ad66bb1fed5a (patch) | |
tree | 59590d01f2ff153593db0522229965b36f110d72 /etc/rc.newwanip | |
parent | d052c74ef86bc306a9f0cf3b6773663037d5a188 (diff) | |
download | pfsense-eec69055431b23191701e1eef9c7ad66bb1fed5a.zip pfsense-eec69055431b23191701e1eef9c7ad66bb1fed5a.tar.gz |
Killoff old incoming FTP helpers
Ticket #772
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 8 |
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); |