Answer the question
In order to leave comments, you need to log in
Mikrotik script to enable ovpn client?
Several ovpn clients are running on Mikrotik, each is tied to a specific port. How to implement that the tunnel would rise only if there is a link on the port and, accordingly, close when the device is disconnected from the port?
Answer the question
In order to leave comments, you need to log in
More or less like this:
:global u
/interface ethernet monitor ether1 once do={
:set u $status
}
:if ($u = "link-ok") do={ /interface openvpn enable 0}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question