diff --git a/usr/local/www/diag_dump_states.php b/usr/local/www/diag_dump_states.php index c832e2ac15..5ed855d68b 100755 --- a/usr/local/www/diag_dump_states.php +++ b/usr/local/www/diag_dump_states.php @@ -54,6 +54,16 @@ if($_GET['action']) { } } +if ($_GET['filter'] && ($_GET['killfilter'] == "Kill")) { + if (is_ipaddr($_GET['filter'])) { + $tokill = $_GET['filter'] . "/32"; + } elseif (is_subnet($_GET['filter'])) { + $tokill = $_GET['filter']; + } + $retval = mwexec("/sbin/pfctl -k {$tokill} -k 0/0"); + $retval = mwexec("/sbin/pfctl -k 0.0.0.0/0 -k {$tokill}"); +} + /* get our states */ if($_GET['filter']) { exec("/sbin/pfctl -s state | grep " . escapeshellarg(htmlspecialchars($_GET['filter'])), $states); @@ -131,11 +141,19 @@ include("head.inc");
- +
+ : + + (: ) + + " /> + + " /> +