Hi,
I have an issue with the Kid-Control feature. This is a great tool, but it does not kill active connections. Kid can play with PC without limits if he does not close the game.
I have written the script, and it is working, but I cannot understand how to trigger it automatically.
Kid-control creates the rule automatically and I cannot involve in it. The rule looks like this:
The script:
How to trigger the script automatically when the kid-control enables dynamic rule to block the device?
I have an issue with the Kid-Control feature. This is a great tool, but it does not kill active connections. Kid can play with PC without limits if he does not close the game.
I have written the script, and it is working, but I cannot understand how to trigger it automatically.
Kid-control creates the rule automatically and I cannot involve in it. The rule looks like this:
The script:
Code:
#searching rule with comment "AidoPC, kid-control". This rule creates by kid-control:foreach r in=[/ip firewall filter find where comment="AidoPC, kid-control"] do={#searching the PC name AidoPC :foreach ENTRY in=[/ip firewall address-list find list="AidoPC"] do={ :local IP [/ip firewall address-list get number=$ENTRY address ]; #Searching IP with all ports :foreach CONN in=[/ip firewall connection find src-address~"^$IP:"] do={#killing active sessions /ip firewall connection remove $CONN; } }}
How to trigger the script automatically when the kid-control enables dynamic rule to block the device?
Statistics: Posted by grillvisiems — Fri Feb 02, 2024 9:04 pm