Questions tagged [router-os]

RouterOS is an operating system for routers developed by Mikrotik.

RouterOS is an operating system for routers developed by Mikrotik.

Documentation

An extensive documentation can be found here.

55 questions
3
votes
1 answer

How to create a new file by Mikrotik routers' scripting

How to create a new file by script on Mikrotik Routerboard (Router OS 6.30)?
lukyer
  • 7,595
  • 3
  • 37
  • 31
2
votes
2 answers

Mikrotik API remove command

I use a Mikrotik API, i can use add Command but I do not know how can use remove command. example Adding VPN user: $API->comm("/ppp/secret/add", array( "name" => "user", "password" => "pass", "remote-address" =>…
Amirreza
  • 61
  • 3
  • 8
2
votes
1 answer

How to setup VPN connection from android 13 native VPN client to mikrotik routerOS?

Since L2TP/PPTP VPN connections are not supported on Android 13 anymore, I am wondering how to setup secure VPN connection between Mikrotik router and Android 13 device using native client which has only these options: IKEv2/IPSec…
Bart
  • 1,889
  • 1
  • 21
  • 38
2
votes
1 answer

How to make php class available in function

I am using a third party class that works well as long as I use it in the main body of my PHP script. If I try to use it in a function that is called from main, it gets a "PHP Fatal error: Class 'RouterOS\Util' not found error". What do I need to…
Scott Reed
  • 31
  • 4
2
votes
3 answers

Mikrotik Switch Commands (Create VLAN, Assign PORTS)

I've been working with a cisco switch and the commands are very simple; eg/ vlan 100 (will add a vlan called 100) interface 1/0/1 vlan 100 (will assign the vlan 100 to the port) It seems mikrotik isn't the same. I don't have a mikrotik switch, but…
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
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 do I send a variable to community.routeros.command? Ansible

I have a variable: ok: [192.168.0.2] => { "_ip": [ "192.168.0.3" ] } I'm trying to pass it to a command on routeros - name: Ping community.routeros.command: commands: 'ping {{_ip}} count 5' register: ping But it turns out to be a…
perl
  • 65
  • 6
1
vote
1 answer

How to connect to RouterOS via Nodejs WebSocket?

I'm learning websocket nodejs, I want to connect to routeros via websocket like the https://github.com/aluisiora/node-routeros/ package, the package is too broad, I just want to know how to connect. I've read the official documentation…
R.M. Reza
  • 725
  • 1
  • 8
  • 20
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
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

MikroTik Router and Unifi AP Guest isolation

My devices: MikroTik RB4011iGS+RM Router (not wireless) and Unifi AP AC LR On the AP, I broadcast two SSIDs. A Staff and a Guest (created on Unifi Controller) On MikroTik created the following: Staff - 192.168.77.0/24 - It works perfectly Guest -…
gyurielf
  • 195
  • 2
  • 8
1
vote
1 answer

MikroTik RouterOS 6.43.4 - CAP mode via reset button

It seems that with MikroTik RouterOS 6.43.4 setting a device to CAP mode is not persistent across reboots. More detailed, steps I took that reproduce the problem: Connected the wAP AC to my CAPsMAN router's POE port while holding the reset button…
Király István
  • 599
  • 5
  • 24
1
vote
0 answers

Swift mailer issue: not compatible with php router os api

If I try to retrieve data from Mikrotik router with the PHP API require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar'; $util = new RouterOS\Util( $client = new RouterOS\Client($this->ip_router, $this->user_router, $this->pass_router) ); …
1
vote
1 answer

Error when connecting (FreeRADIUS V3 & MySQL) to Mikrotik router

I had setup FreeRADIUS V3 on a virtual-box that runs Ubuntu 16.04 with the using of MySQL as a database. Also, another virtual-box running Mikrotik RouterOS to simulate a connection between the PC and router. I have configured Mikrotik as a hotspot…
philip
  • 31
  • 8
1
2 3 4