summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-19 11:55:52 +0000
committerErmal <eri@pfsense.org>2010-08-19 11:55:52 +0000
commit1bb031509c69630d4da81b7688ec1c892a1d6d3e (patch)
tree83dc6b5c0bef2baaf0400de4ccd7296be6995c73
parentcd95b46eeb08918b3bd74fd9d8595d0a02b8bb86 (diff)
downloadpfsense-1bb031509c69630d4da81b7688ec1c892a1d6d3e.zip
pfsense-1bb031509c69630d4da81b7688ec1c892a1d6d3e.tar.gz
Ticket #8. Try to kill all states regarding source nodes and states with source address the gateway ip.
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 5fe9cfb..3f96b3e 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -146,8 +146,11 @@ function filter_delete_states_for_down_gateways() {
$a_gateways = return_gateways_status();
foreach ($a_gateways as $gateway) {
if (stristr($status['status'], "down")) {
- if (is_ipaddr($gateway['srcip']))
+ if (is_ipaddr($gateway['srcip'])) {
mwexec("/sbin/pfctl -b {$gateway['srcip']}");
+ mwexec("/sbin/pfctl -K {$gateway['srcip']}");
+ mwexec("/sbin/pfctl -k {$gateway['srcip']}");
+ }
}
}
}
OpenPOWER on IntegriCloud