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

Captive portal without internet on Android

Good day. I need Captive Portal on the WiFi hotspot that will work without internet and popup a notification or open a login page automatically. I am using Mikrotik with RouterOS 6.27. I created hotspot and then added a RegExp in DNS like .* =…
Taras
  • 291
  • 4
  • 10
8
votes
1 answer

How to open default browser from captive on Android

We are developing WiFi authentication solution which should redirect user to the particular page after connection to the WiFi. On the Android devices we faces with the problem. Once user clicks on the notification into the widget, captive is getting…
Sergey Teplyakov
  • 593
  • 6
  • 17
4
votes
1 answer

Mikrotik - Add second WAN IP and route specific traffic

After 20 pages of SO results about Mikrotik and some more google results, I'm come here, down on my knees to request some enlightment. I have a network with static IP and some public IP (248 mask). So far I've configured the network to use one of…
LordNeo
  • 1,177
  • 1
  • 8
  • 20
4
votes
1 answer

Mikrotik auto user-manager user script needs improvement

I wrote this script but it's not working properly.Anyone can help? It's supposed to check download limit and download used by a user and then do some action i.e to remove the user from active ppp list but it has some flaws which is that I can't get…
Umair Shah Yousafzai
  • 2,187
  • 2
  • 21
  • 45
4
votes
2 answers

Mikrotik - How to add Simple Load Balancing in Mikrotik

I have to WAN connected to mikrotik routerboard, named ppoe-WAN1 and ppoe-WAN2 I want to add simple load balancing to using tow internet connection for all lan users
leili
  • 81
  • 1
  • 2
  • 6
3
votes
1 answer

What does the Mikrotik :execute command return and what can I do with it?

When I run the following command from Mikrotik SSH, I see an asterisk followed by a hex value, which will look something like like *4e. :put [:execute { :ping localhost count=10 }] According to the Mikrotik wiki, the :execute command executes…
jveazey
  • 5,190
  • 1
  • 27
  • 43
3
votes
3 answers

Mikrotik Router Management via Web App

I need help in building a project. Let me first describe my project - I want to build a Web application (using php / php framework(laravel) , html, css, javaScript, bootstrarp ) that will help ISP owner to manage their router (most of them use…
Erfan Ahmed
  • 1,404
  • 4
  • 20
  • 30
3
votes
1 answer

Edit Mikrotik User Profile With PHP API

I'm building a WiFi authentication tool with user profile edit and guest credentials, etc. I can write users to the mikrotik and remove users without an issue, but I can't find any documentation on editing the user profile. I suppose I could just…
zgr024
  • 1,111
  • 11
  • 24
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
2 answers

Splitting mikrotik script into an key/value php array

Let's say, I have this script below in mikrotik router, I want to extract an array with key and value, how to do that if there is another value contains a = character, add name=100YER on-login=":do {:put \"a\";} on-error={};"…
2
votes
1 answer

HAProxy $_SERVER['REMOTE_ADDR']

i am struggling with HAProxy setup. Everything works well except IP, which is still displayed as local on web server instead of public. I have tried enable "option forwardfor" doesn´t work. My setup is like. Mikrotik router, where is public IP. I…
Josef
  • 21
  • 1
2
votes
1 answer

Mikrotik V6.45.3 login php api Invalid username or password supplied. in Client.php (line 174)

I was trying to login mikrotik 6.45.3 version using php api but, getting error Invalid username or password supplied. in Client.php (line 174)]". Lower version of mikrotik firmware working fine with same API. I was trying to find the solution…
2
votes
1 answer

Fatal error: Not enough bits to represent the passed value

Trying to use Mikrotik API library written in Swift: https://wiki.mikrotik.com/wiki/API_in_Swift It works well, when I'm sending small commands However, If I will try to send large script string, I'm getting error: Fatal error: Not enough bits to…
Woof
  • 1,102
  • 1
  • 9
  • 19
2
votes
2 answers

Failed binding to auth address 127.0.0.1 port 18120 bound to server inner-tunnel: Address already in use

I have configure freeradius following this tutorial. But when I run a command "freeradius -X" I got the following error radiusd: Opening IP addresses and Ports #### listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 Failed binding to auth…
1
2 3
19 20