PHP-API: Delete firewall filter rules, where comment started with "MYRULE" string
Posted: Mon Dec 12, 2016 3:45 pm
There are a lot of rules in "ip firewall filter". Some of them are commented. Comments starts "MYRULE_<anything>" (for example MYRULE_user1, MYRULE_user2, and so on ...)
I need to delete all ip firewall flter rules, where comment started with string "MYRULE_" .
I know how to do that in command line:
Now the same thing I need to do in PHP API. How to do it?
I need to delete all ip firewall flter rules, where comment started with string "MYRULE_" .
I know how to do that in command line:
Code: Select all
ip firewall filter remove [find [:pick $comment 0 6]="MYRULE"]