Questions tagged [mikrotik]

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.

293 questions
2
votes
1 answer

How to Create New User in Mikrotik Using Laravel?

I am trying to add new user using Mikrotik PHP API in Laravel. I can use the API for other usage (like view user information) but when I try to create new user, it gives me nothing, even no error, just redirect me to intended page. My route…
Ahsan
  • 907
  • 3
  • 9
  • 27
2
votes
1 answer

Read data with parameter case insensitive API Mikrotik tik4net

I have a problem with the Mikrotik API in C# I locate a logged user on hot spot with this code: connection.LoadSingleOrDefault(connection.CreateParameter("user", *MyUserName*)); However it works on a case-sensitive basis; how can…
Dario
  • 21
  • 2
2
votes
3 answers

How to remove Mikrotik PHP Api firewall nat entry using find

I am trying to add and remove NAT entry using a single line php api code but unable to do it. Terminal code Mikrotik: /ip firewall nat remove [find comment=id9] //Its working fine on terminal I am trying writing bellow php api: to…
2
votes
0 answers

Android convert diamond question marks to UTF-8 Arabic string

I'm using an API that sends and receives raw bytes. But i have problem with displaying the Arabic words that comes over the API, it's displaying like diamond question marks "���" I've tried to convert the string from and to utf-8. This example…
Amr SubZero
  • 1,034
  • 2
  • 18
  • 29
2
votes
1 answer

Mikrotik Scripting: Get Interface IP

I want to get the local-address property of a pppoe-client interface, which is my public internet IP. Assuming that the name of the interface is my-pppoe-out, what is the proper interface pppoe-client get command to use? I couldn't find anything…
David Refoua
  • 2,879
  • 1
  • 26
  • 48
2
votes
1 answer

Mikrtotik - Internal login page causing Infinte loops

I am trying to use the Mikrotik hotspot with following scenario. When the user connected to hotspot, login.html page redirect to external page index.php to check exist user from csv. if user exist then it will redirect to redirect.html. if user not…
M. Qasim
  • 53
  • 1
  • 7
2
votes
2 answers

Mikrotik Hotspot PHP API

i'm working with php api by Mikrotik, but i do not how control if the user is disconnected do not run the limit-uptime? this is my code $API->write("/ip/hotspot/user/add", false); $API->write("=name=".$usuario,…
Miguel Garcia
  • 23
  • 1
  • 5
2
votes
3 answers

How to call an onclick javascript function directly in url?

I want to call to a onclick function as I am writting script for MikroTik RouterBoard in order to restart my Modem by just visiting a simple link directly but what I found was that the page from which Modem is rebooting there is a button which calls…
Umair Shah Yousafzai
  • 2,187
  • 2
  • 21
  • 45
2
votes
1 answer

how to use mikrotik-api in android studio

I'm trying to use mikrotik api Java in android, but when i downloaded it and added it in android studio project and used it the app forced to close! The Mikrotik API On Github: https://github.com/GideonLeGrange/mikrotik-java imports in the begging…
morajabi
  • 157
  • 4
  • 15
2
votes
1 answer

MikroTik php pear2 api stream_set_blocking() error on windows shared hosting

Getting this error when I try to connect mikrotik router with PHP Pear2 API on shared windows hosting. I don't think I have permission to access php.ini PHP Warning: stream_set_blocking() has been disabled for security reasons in …
rahul chaurasia
  • 153
  • 1
  • 9
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
  • 352
  • 1
  • 2
  • 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…
user15155716
  • 153
  • 6
1
vote
1 answer

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…
1
2
3
19 20