Not sure the purpose behind the first for loop, you never use the variable even.
It seems to me, if I'm understanding correctly what you want it is:
If there is a kid-control rule, find the ip address(s) involved in the rule(s) remove the connections associated with those rule(s)
What is the kid rule? Does it just block all traffic from that ip?
If so:
Replace the first foreach loop with an if statement . So if there's any kid rule it checks the ip(s) and removes the connection(s) . Then run it on scheduler to trigger on an interval.
It seems to me, if I'm understanding correctly what you want it is:
If there is a kid-control rule, find the ip address(s) involved in the rule(s) remove the connections associated with those rule(s)
What is the kid rule? Does it just block all traffic from that ip?
If so:
Replace the first foreach loop with an if statement . So if there's any kid rule it checks the ip(s) and removes the connection(s) . Then run it on scheduler to trigger on an interval.
Statistics: Posted by jonah1810 — Fri Feb 02, 2024 11:27 pm