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.

46 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
  • 6,141
  • 1
  • 31
  • 28
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 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
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

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…
Renomu Reza
  • 94
  • 1
  • 7
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…
user15155716
  • 153
  • 6
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
  • 3
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
  • 37
  • 3
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
  • 386
  • 3
  • 18
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
  • 7
1
vote
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…
0
votes
0 answers

Routeros connection failed

I have installed routeros in the pip but yet the error is being shown. got this code from my senior. I am trying to gather the status of the connection in my network. import routeros_api import json import datetime import sys #make a connection to…
0
votes
0 answers

Unable to establish socket session, No route to host On RouterOS

I am trying to communicate with a Mikrotik Router OS Via PHP as below private function openSocket(): void { $options = ['ssl' => $this->config('ssl_options')]; $context = stream_context_create($options); $proto =…
user15155716
  • 153
  • 6
0
votes
0 answers

How to mount a PHP Server on Router OS

I know Router OS basically serves only static files, but my current use case requires that I upload some PHP files along with the static files. This means that I have to mount a PHP server on Router OS to correctly serve them to me upon…
user15155716
  • 153
  • 6
1
2 3 4