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
0
votes
1 answer

Mikrotik multi site OpenVPN. Clients are not visible

I have two locations with Mirkotik routers, connected over OpenVPN. I would like that all clients in each location could contact clients in the other location. Both routers use the default firewall settings from RouteOS 6.44. Location 1. Router 1:…
Steve
  • 97
  • 1
  • 1
  • 9
0
votes
1 answer

Extending Usable IPs for Mikrotik

I can't seem to extend my pool for my additional users. I don't have any problem with my connection when the ip address handed is 192.168.10.xxx but when it reaches to 192.168.11.xxx to 192.168.16.xxx, it can no longer use the internet. What am I…
David
  • 51
  • 1
  • 6
0
votes
1 answer

Empty string in Ansible responses

I am developing RouterOS network module for Ansible 2.5. RouterOS shell can print a few messages that should be detected in on_open_shell() event and either skipped or dismissed automatically. These are Do you want to see the software license?…
heuels
  • 84
  • 1
  • 11
0
votes
1 answer

connect mikrotik router hotspot default login.html to external database

I have created a hotspot server in mikrotik router. Its successfully redirecting the users to default login.html and accepting the users I have added in the hotspot users. I want to open the default login.html only, but I want it to use my database…
user3807691
  • 1,284
  • 1
  • 11
  • 29
0
votes
1 answer

How to get HTTPS URL logs using SQUID

I need URL logs on my network using SQUID and Mikrotik I am able to get HTTP traffic, but I am not getting HTTPS traffic. How to get HTTPS traffic using SQUID and Mikrotik? another way is also fine.
Ganesh
  • 114
  • 1
  • 10
0
votes
1 answer

Check rule/object first before applying RouterOS PHP API

I am having a bit of a problem with updating rules on my router via PHP API, how can I make my code first check if there is a difference in the setting for example first check the router if the rule/object is disabled and then apply or do nothing if…
0
votes
1 answer

MikroTik PHP API: Add, or remove if existing IP>Firewall>Address-list

I need help with PHP API for adding an address to the address-list if it doesn't already exist and removing if it does exist. I am using routeros_api.class.php from https://wiki.mikrotik.com/wiki/API_PHP_class. I have tried this, the removal part…
0
votes
1 answer

how to earn online user with mikrotik pear2 api?

i used pear2 api for disconnect user from mikrotik. with $printRequest = new RouterOS\Request('/ip/hotspot/active/print'); $printRequest->setArgument('.proplist', '.id,mac-address'); …
0
votes
1 answer

Comparison script for bytes value mikrotik

i want to comparison bytes value (tx-bytes,rx-bytes) downloaded by user with my pattern for example (100MiB, 50MiB) but i can't write script for solve this , how can i do that ? the place i want write script for that is : /interface wireless…
neviseh70
  • 23
  • 1
  • 5
0
votes
1 answer

IP and port is open still PHP is not connecting?

I am trying to connect to MikroTik RouterOS through External Remote IP but I am not able to connect as I can see that I can successfully connect to API through Localhost but can't connect through my hosted file at my site..! Here is link to file…
Umair Shah
  • 2,305
  • 2
  • 25
  • 50
0
votes
1 answer

Miktotik - routing script

I'm stuck at doing this script. Script is supposed to do this: It will download a file from URL. If it reach the file and downloads it then changes routing to Server 1. If download failed it will change routing to Server 2. Then it'll delete that…
user5197382
0
votes
1 answer

Public hotspot with advertisements

I would like to build a public wifi hotspot on a openwrt router which interrupts user-surfing after about 15 minutes by showing a commercial. I think I need a transparent proxy to achieve this but dont know which one could do that. Could someone…
Mike78
  • 1
  • 1
0
votes
1 answer

updata download sizes at mikrotik

I have a PC as a mikrotik router at home, and also i have many power failures because the electricity network is undergoing maintenance ant this may last for months, and I noticed that what it's shown at the user profile is not updated instantly by…
DeepBlue0003
  • 3
  • 1
  • 4
0
votes
1 answer

MikroTik reset counters

I am trying to put some boundaries in the usage of the bandwidth of the Internet connection I am in charge. I wrote a simple script to limit the upload/download rate when the user reach a certain volume. To test it, it manually reset the counters of…
Patrik
  • 401
  • 1
  • 6
  • 23
0
votes
1 answer

How use "import" in mikrotik routeros api?

I can connect to mikrotik device via serial port and use command: "/import getID.rsc". How call "/import getID.rsc" via routeros api http api (http://wiki.mikrotik.com/wiki/API) ?
e.proydakov
  • 544
  • 6
  • 18