hi! I want to make script for ping device from network, lets say 192.168.1.50, if it responds to the ping enable firewall rule, if ping drops disable firewall rule. Can you help me guys?
Use the Netwatch tool.
Tnx, i’m trying but cant make it work . Can you point me to working example
What did you try?
set the ip of the host 192.168.1.150
up /ip firewall filter disable numbers=0
down /ip firewall filter enable numbers=0
also tried to set the script and just run it from netwatch with:
/system script run script1
no luck
You can use comments for rules that will be enabled and disabled, create this script on netwatch
UP
/ip firewall filter disable [find comment=tes]
DOWN
/ip firewall filter enable [find comment=tes]
Good luck