MikroTik is a Latvian company which was founded in 1995 in Riga to develop routers and wireless ISP systems. MikroTik now provides hardware and software for Internet connectivity in most of the countries around the world.
Questions tagged [mikrotik]
328 questions
2
votes
2 answers
Mikrotik - Using 2 WAN connections with 2 Static IP addresses
I have 2 WAN lines that connect to the Internet: one connects on ether1 interface, the other connect on ether2 interface, using a Mikrotik router.
ether3 connects to LAN.
Each line has Valid IP (static IP) and connect with PPPoE connection:
WAN 1…

leili
- 81
- 1
- 2
- 6
2
votes
1 answer
Lua script over Mikrotic routers
I am new with LUA so take it easy to me.
I have the following code that should be ran into mikrotik router.
Could you possibly tell me what it does?
:local content
:local i
#For each mangle in the list
:foreach i in=[/ip firewall mangle find…

mrb
- 29
- 2
2
votes
2 answers
mikrotik nat redirect to local from local
I'm using Mikrotik 750GL and I have such a problem:
I have subnet 10.0.0.0/16
Router has local ip 10.0.0.1 and external ip (e.g. 1.1.1.1)
I forward some ports to my local hosts (e.g. firewal nat dst-nat 1.1.1.1:444 -> 10.0.0.2:80)
When I go to…

red
- 634
- 1
- 6
- 12
1
vote
1 answer
Use ansible_user variable in ansible_user variable
As described in the ansible documentation for routeros I need to add +cet512w to my ansible_user. But I do not want to hardcode the user in every routeros play[book] so I use {{ ansible_user }} everywhere. Is it possible to concat that +cet512w…

Christoph Lösch
- 645
- 7
- 22
1
vote
1 answer
How can I add my ssh public key to a Mikrotik router device using the command line?
Mikrotik doesn't support ssh-copy-id which copies ~/.ssh/id_rsa.pub into the .ssh/authorized_keys file of a host on almost all Linux devices.
Is there an equivalent way to authorize a key on a Mikrotik RouterOS device so that I don't have to type a…

dagelf
- 1,468
- 1
- 14
- 25
1
vote
1 answer
large scale local network
For an application I need to extend WiFi range where a raspberry pi which is mounted on a drone and is away from station can connect to this WiFi network and stream video.what options are there for me to implement this network?
suppose that the…

Saeid Haghighipour
- 41
- 1
- 5
1
vote
4 answers
Is it possible to capture an auth data from a GPON router?
I have a Mikrotik router with an SFP+ port and a Ubiquiti UF-GP-C+ GPON stick. My ISP provides me GPON Internet connection with its own preinstalled router (Huawei actually) so a fiber cable is connected directly to the router. An authorization data…

G-Virus
- 37
- 8
1
vote
1 answer
Deploying NextJS locally on a Mikrotik Router Board
I have a scenario where I would like to use NextJS to build an application that would be deployed on a mikrotik router board.
In this case I need to have both backend and frontend served via the Router Board.
I understand, the awesomeness of NextJS…

ololo
- 1,326
- 2
- 14
- 47
1
vote
0 answers
problem in connecting client to L2TP server
I've the MIKROTIK router on KVM. after transfer MIKROTIK to new server and change the router IP my client can not connect to the server. and in the server log file show me this error: phase1 negotiation failed due to time up…

abbas derafshi
- 307
- 1
- 11
1
vote
2 answers
Ansible playbook causes exception occurred during task execution half of the time
i have a problem with ansible:
I wrote some playbooks, that do basic things like getting the routeros version from the mikrotik, and the playbook itself seems to works fine.
What i mean by that is that about half of the mikrotiks (all in one…

ThePhenex
- 11
- 4
1
vote
1 answer
Connect via ssh with a single .bat script to multiple Adresses
I have a environment of 27 Mikrotik Routers and I want to add a user on each one with same credentials.
Normally I had to connect on every Router and click through the GUI to add the user, but now I found a way to use SSH connection via cmd.
I…

IT-4me
- 11
- 1
1
vote
1 answer
Mikrotik router Layer7 regexp block access by DNS zones
I trying to make regex for block resources with specific DNS zones only
for example .ru
I tried several regex but something Mikrotik router specific and expressions not work...
This list of patterns not work and I not understand why, because in…

452
- 396
- 4
- 9
- 24
1
vote
2 answers
Peer disconnecting when setting Mikrotik as OpenVPN client
I want to connect my OpenVPN server (Ubuntu 16.4) in my office to my Mikrotik at home as client.
I already have OpenVPN server set based on this tutorial (link). If I try to connect it connects with OpenVPN client Windows app (no errors), and asks…

DaniKR
- 2,418
- 10
- 39
- 48
1
vote
1 answer
How to extract the output from stdout.lines in ansible
---
- name: Mikrotik info
hosts: mikrotik
connection: network_cli
remote_user: root
gather_facts: false
tasks:
- name: show info
routeros_command:
commands: /system routerboard print
register: rb_info
- name: Debug info
…

Deema Pozdin
- 13
- 1
- 4
1
vote
2 answers
Azure Site-to-site with mikrotik: Payload missing: ID_R
I'm trying to establish Site-to-site connection between Azure Virtual Network Gateway and local site using Mikrotik (RouterOS 6.43.10).
I followed various configuration…

rudolfdobias
- 1,778
- 3
- 17
- 40