Alien
1
Hi, I have a little qestion..
I have some script i scheduler do disable/enable firewall rules, i do that by “comment”
for example:
/ip firewall rule forward disable [/ip firewall rule forward find comment=p2p]
So that, my comment must be set to “p2p”
is there any option in “find” command, that I can set comment for example to “p2p User1” “p2p User2”
sorry for my english, thanks for help 
You could try something like this (in 2.9):
:foreach Rule in [/ip firewall filter find chain=forward] do={
:local Comment [/ip firewall filter get $Rule comment]
:if ([:find $Comment p2p] >= 0) do={
/ip firewall filter disable $Rule
}
}
Which will disable any rule in the forward chain, that has “p2p” anywhere in the comment.
I don’t think 2.8 has a way to do that.
–Eric