T
T
timka2282020-08-21 14:57:57
Mikrotik
timka228, 2020-08-21 14:57:57

How to connect mikrotik and VDS?

There is a Mikrotik router and a vds server on ubuntu with a dedicated ip.
I need mikrotik to write certain data to a certain file at certain events =))) And also Mikrotik must periodically read a certain file on the server.
How to organize such a relationship? Through a VPN somehow?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alexandrov, 2020-08-21
@timka228

You take and make a certain api on the server, with a certain utility you pull it over http. And also use Mikrotik to pull a certain server api so that it gives a certain file.

E
Evgeny Avdeev, 2020-08-21
@javdeev

"mikrotik wrote certain data to a certain file at certain events"
If you meant a file on the server, then yes, you will either have to block the api or somehow connect to the server via ssh and write a file on it.
You probably know that Mikrotik has the ability to run "mikrotik write to file" scripts
https://wiki.mikrotik.com/wiki/Manual:Scripting
with these scripts, you can track actions, write a file, and send a file to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question