my question .. why only first script added to firewall filter list .. only first command send to mikrotik … any wrong in my script??
thanks and sorry my bad english …
I think “in-bride-port” is supposed to contain the name of the interface you’re targeting, not its ID (which BTW, is probably not “*1”, which is another reason this may be failing).
Also, you should probably remove the “disable” argument… or rename it to “disabled”.
dont know … maybe first time im read .. API from dennis looks like simple .. actually im tried quite a Net Router OS .. but in the beginning I had trouble understanding what it’s “Pyrus and Phar” … I tried it and had trouble installing on windows .. That’s the reason why I chose dennis client
I had trouble understanding what it’s “Pyrus and Phar”
You don’t need Pyrus.
“PHAR” stands for “PHP Archive”. It’s basically multiple PHP files, combined into one, same as a zip file*. You can just download the “.phar” file, and include it as shown above.
I can understand that Pyrus can appear hard to deal with, especially if you’re not used to working with the command line - that’s what the Phar file is for. Pyrus is recommend for those who wish to also download updates when they come out, especially updates to dependencies. If you’re only just getting started, the PHAR is as good of an option as Pyrus, if not better.
n sorry if i have many questions
No problem. In fact… Did you found me on Skype as we discussed?
\
Strictly speaking, it’s an actual archive (TAR with optional GZip or BZip2 compression) with the additional option of prepending a PHP file at the start (the so called “stub”), which can be executed. In the case of my client (as well as any library distributed as a PHAR), an autoloader is registered, and that’s about it. Pyrus’ PHAR file on the other hand triggers a file that does different things based on the command line arguments.