S
S
Systemshik2019-03-11 08:54:10
Mikrotik
Systemshik, 2019-03-11 08:54:10

How to write a script on Mikrotik-e to automatically disable and enable Layer 7 Protocol?

There is a seventh layer protocol in Mikrotik routers - called Test1 and this protocol is always enabled. I need to make this protocol turn on and off every 10 minutes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
smesh, 2019-03-11
@Systemshik

Level 7 keys themselves cannot be disabled, but you can disable the rules that refer to it (if the rule \ rules are disabled, the packets are not processed by the keys and there is no load on the hardware).
Accordingly, we make scripts that disable / enable the necessary rules, and push the scripts into the scheduler so that they are executed alternately with an interval of 10 minutes.
(UPD - ready solution)
For example, we will consider the rules in Filter Rules and mark the necessary ones with the comment "RulesF".
and
The "Layer7-disable" script disables all rules in the Filter rules with the "RulesF" comment, while the "Layer7-enable" script enables them.
and
The rules will be executed alternately with an interval of 10 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question