Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Scripting • Re: Trigger script from Kid-Control dynamic firewall rule

$
0
0
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.

Statistics: Posted by jonah1810 — Fri Feb 02, 2024 11:27 pm



Viewing all articles
Browse latest Browse all 15394

Trending Articles