Thanks mrz, but I'm using pers2/Net_RouterOS PHP class, I wonder if there is any update to don't change the code directly. it should be here: private static function _login( Communicator $com, $username, $password = '', $timeout = null ) { $request = new Request('/login'); $request->send($com); $res...
Hi, I did read about new login API from 6.45.x version. https://wiki.mikrotik.com/wiki/Manual:API#Initial_login Now I have several routers where I connect throw pear2/Net_RouterOS with versions older that 6.45 (arround 1000 routers). And now there start to come some with new RouterOS version. I did ...
Hi, I'm doing a php program to read and write some Mikrotik fileds. I'm using API calls from boen.robot. One of the fields I want to read and update is /ip/hotspot/user/profile mac-cookie-timeout In mikrotik we store this time as "xxxd hh:mm:ss" like "999d 01:00:10" but when I re...
Hi Joegoldman, if you test the rule it is not filtering all https only the https from site not added on walled garden. I get from: https://wiki.mikrotik.com/wiki/Manual:Hotspot_HTTPS_example SSL certificate key size will impact load on www service on hotspot server. Effects of this is seen from host...
Hi, I have hotspots with radius auth and account. Some radius users have Session-Timeout arround 1 day and 20 days. I've realeased than if lease from dhcp-server on radius is less that the session-timeout the active user (while beeing inactive) is deleted from active users on hotspot due to lost dhc...
Still finding a solution..... Easy test... create a hotspot. Add rule: /ip firewall nat add chain=hs-unauth action=return protocol=tcp dst-port=443 place-before=0 Add on walled garden fbcdn.net *fbcdn.net *fbcdn* and before logged in open on browser this image for example https://scontent.fmad3-5.fn...
Hi, actually, I’m doing different API calls to get information from the router like: $binding=$this->util->setMenu('/ip/hotspot/ip-binding')->getAll(); $hotspots=$this->util->setMenu('/ip/hotspot')->getAll(); $routerInfo=$this->util->setMenu('/interface/wireless')->getAll(); At the end I call the ro...
Hi, I did check my php file and it is UTF-8 (checked with atom on botton right of the status bar as you seggested). I did modify on winbox some special character like í and i could get it correctly charset with this : $this->client->setCharset( array( RouterOS\Communicator::CHARSET_REMOTE => 'WINDOW...
Hi, I have a program that adds and update sstp-server interface with an api call. I'm using PEAR2_Net_RouterOS 1.0.0b5 and I can't send properly some UTF-8 characters. I've add header("Content-Type: text/html; charset: UTF-8"); and tryed to add this: //Here's where we specify the charset p...
Hi all, I have a hotspot where I want to drop all https traffic while user is not idendified. So as Mikortik manual told https://wiki.mikrotik.com/wiki/Manual:Hotspot_HTTPS_example I add this firewall rule: /ip firewall nat add chain=hs-unauth action=return protocol=tcp dst-port=443 place-before=0 W...
Hi, At the moment I have arroung 1.000 mikrotik routers with hotspot using freeRadius as auth and account. The radius server is on AWS Frankfurt and most of the clients are working ok. But there are some (10 or so) cliens that are losing always udp packets and arround 10% of request are lost. And al...
... ErfanDL - Not yet added to GUI "/ip hotspot profile set https-redirect="; ... Please can you explain this new feature and how is working. Tks Yes please, an exaplanation ? for both features: *) hotspot - added "https-redirect" under server profiles; *) hotspot - added per-us...
Hi all, Imagine we have a mikrotik with hotspot active and a mikrotik ap1 atrached on eth4 and mikrotik ap2 on eth5 Is there any way on the hotspot redirection to post the mac address form the AP or any information to know where the user is connected. I would like to show success landing page or log...
strods I'm not saying that this change is wrong, it should work like that, but: 1. Write it in changelog 2. If you have to update and set regulatory domain for countries, why removing superchannel with country set instead of unsetting country with superchannel set? I don't think this change is corr...
strods I'm not saying that this change is wrong, it should work like that, but: 1. Write it in changelog 2. If you have to update and set regulatory domain for countries, why removing superchannel with country set instead of unsetting country with superchannel set? I don't think this change is corr...
Hi, I need to block traffic from hotspot users to the LAN of the GetWay. I have a dhcp-client on bridge interface, then depend on the internet provider I have 192.168.1.1/24 Getway or 192.168.0.1/24 Getway or others.... I would like dynamically to not allow traffic to others ips of the 192.168.1.1/2...
Hi all, I’m working with mikrotik hotspot and freeradius 3.0.10. I'm testing about limit session time. At the moment I got than if the user try to login (authorization) and has over the limit session time per day, radius sends authorization error that is ok. Now I need to disconnect user when they g...
Hi again, I’m still trying to auto configure routers but I can't get it..... Last try is: RouterBoard 2011 ETh1 connect to ISP Eth2 DHCP-Server connect to PC Eth2 192.168.90.1/24 Pool 192.168.90.30-256 PC Gets 192.168.90.254 Eth5 bridgeAutoLan5 bridgeAutoLan5 ip Address 192.168.88.2/24 RouterBoard 9...
Ok, seems difficult to do it. Terminal from mikrotik doesn't allow automations. Last thought could be a Little difficult but I don't know if it will Works. Because i want to update 5 mikrotiks at the same time could be possible to add a bridge to each Ethernet so, eth1-bridge1 (192.168.1.10), eth2-b...
Thanks boen_robot, Good explanation. It s clear all you tell. I would like the be able to configure 5 routers at the same time. I mena plug 5 routers, script that runs every 5 min and then check neighbors and fire phpapi to connect 192.168.88.1 but all of them will be 192.168.88.1... Do you think is...
Hi all.... Last week I was on Madrid-MUM and one of the conferences was the auto configure with DHCP66 using mikrotik server and other device client. That make me think that I would like something similar and more easy that I wish to build. I usually have a auto configuration script let’s say load.r...
Hi, at the moment I have mikrotik with hotspot and user identification throw radius. I have some problems with some ISP companies that block the radius protocol and hotspot is working but radius identification fails. I have tried to change the default radius ports but still not working. I'm thinking...
Hi all, Actually I have about 200 mikrotiks in different locations. All this mikrotiks are running routeros 6.25. All this mikrotiks have two sstp-clients tunnels (master and backup) to a sstp-server at office. Because routerOs has a bug on 6.25 i have to keep 6.25 on both side client and server. Ot...
Hi boen_robot , the main reason to do :execute "" is because i want to execute this script even on a RB with wireless and RB without WIRELESS. At the momento I have 2 scripts one for wireless RB and another for unwireless RB devices. I like to have one script for both models, but if I add ...
Hi I would like to know if there is a posibility to know when :execute function finished. If I don't wait 1 second after execute the script dosn't work because trys to add bridge on an interface not created by :execute yet.... :execute "/interface wireless security-profiles set [ find default=y...
Hi again, I found this that makes really easy to upgrade lots of routers with no timeout.... Works great and is really easy to adapt to API calls. http://stackoverflow.com/questions/5533076/processing-large-amounts-of-data-in-php-without-a-browser-timeout I upgrade more than 100 routers to 6.25 and ...
I just installed the dude (3.6) and now 4.0beta3. I have on the same network a mikrotik running 6.25 version. I can add the device manually on the Network maps -> Local But if I delete it and try to discover it doesn’t appears. Even if I add the router IP directly red scanner ... I have changed lots...
Hi, i will check wich is the best if running batch PHP or web PHP and prevent timeout. Will share when donne. Now I relise that first of all i have to upgrade more tan 100 rb951 to routerOS 6.25 before upgrade my scripts. I have 6.25 on my server... I use: /tool fetch url=http://www.xxxx.com/yyyy/ro...
Good !! with the first solution was working $addRequest ->setArgument('numbers', '_SwB_Sinc') ->setArgument('source', iconv('UTF-8', 'windows-1252', preg_replace('~\R~u', "\r\n", $_SwB_Sinc)) ); But i like the delete part. Yes after doing to many exec calls it goes a bit slow. Even if i ha...
Yes, it was charset. But can't make working iconv. with this i send my script and comments with correct language: $client->setCharset( array( RouterOS\Communicator::CHARSET_REMOTE => 'windows-1252', RouterOS\Communicator::CHARSET_LOCAL => 'UTF-8' ) ); but if i change setCharset to: $_SwB_Sinc=iconv(...
I'm getting the error: Fatal error: Maximum execution time of 30 seconds exceeded in D:\xampp\htdocs\apiMikrotik3\PEAR2_Net_RouterOS-1.0.0b5\src\PEAR2\Net\RouterOS\Communicator.php on line 222 when executing $util = new RouterOS\Util($client = new RouterOS\Client('192.168.90.253', xxx,xxx)); .... $a...
Ok, then i can't use exec because the first thing I have to do to all may routers is upgrade an script (add a line to this script). The idea should be to delete the old script and create a new one with las version. I have still having problems with the variables php and router_os_scripts ($) : http:...
Thanks a lot ! The three options will help me. Now i'm starting to program the first upgrade and get an error. I have to upgrade a script line (will write all source script with exec) into all my routers. 1) When I use local variables that must begin with $ into RouterOS script PHP interpretes even ...
Now i can test with both environments api_mt_include_1.6.php and PEAR2/Net/RouterOS Like you said both of them don't add carry-return: This code adds one line with the first two logs, carry return, and one line with next two logs..... $addRequest ->setArgument('name', 'TEST_API') ->setArgument('sour...
boen_robot, it is not working... on the mikrotik is only sent the first line when I add "\r\n" or "\n". Also i'm trying to configure PER2 into XAMPP localhost PC but can't make it working. I did download all the files Net_RouterOS-master\src\PEAR2\Net\RouterOS also download form ...
Still the same problem.... trying to add a script with mikrotik API but carry return is not send.... The code works due ; but i would like to add diferents lines into script is it possible ? $API->write("/system/script/add",false); $API->write("=name=TEST_API",false); $command='=...
Normis, IOS 7/8 CNA is not like safari. No javascript, no cookies .... I've been trying with all of you: mikrotik supporters find a solution to handle this and you don't even try to understand us and give us the solution we need. We still buying mikroitk but not really happy with your help. Thanks a...
How can active X-Forwarded-For.
I need to send the IP of the devices connected throw dhcp on the bridge.
I mean i have bridge with dhcp-server on wifi and need to send on X-Forwarded-For the device IP.
How we can block whatsapp from hotspot ? I tryed everything: 1) walled garden : denied *.whatspp.* 2) addredd list with all ips from whatsapp and firewall forward drop 3) DNS static www.whatsapp.net s.whatsapp.net.... to 10.1.23.0 (nowhere) 4) firewall drop everything but allways (before identified ...
Hi all !! I have a hotspot system that redirects to my external host to login user and identify it throw radius server. Say that my web-identify-site is 91.xxx.xxx.xxx. If my site is offline due a maintenance or error I would like to disable hotspot to allow user connect internet without problems. S...
I did some work arround. I need differents numbers for each routers. So with Mac ETH1 and routerserial I generate diferents numbers. Then because I run Schedule every 5 minutes I generate time from 0:00 to 4:59 # Random star-time # Generar minutos aleatorios de 0:00 a 4:59 :local nMin; # 0..4 :local...
Not really, i'm using RB951 ui 2hnd and the clock when reset device always de same jan/02/1970 00:00:00 If I run this script without specify time: /system scheduler add comment="Update Sincro" interval=5m name=_SwB_Sinc on-event=_SwB_Sinc \ policy=read,write,test On differents reset-config...
I used to config all my mikrotik's routers with a generic script. In this script I add an Schedule script to fetch info from URL and synchronize my router. Now I have more than 80 mikrotiks with this configuration and all of them fires the Schedule script on the SAME time minute second. This is the ...
Hi, I have the same problem, setting radius limit does not work. Even I'm using Daloradius and until finish connection on mikrotik, radius doesn't accumulate bytes in or out on radius database. So i'm doing a work arround: SCRIPT that logout user if it download over the limit. If it trys to connect ...
i read about limit rate limit on hotspot. But I would like to limit bandwith only when user is ACTIVE. I mean the login process showd be with out limitation. After identify user limit it.
Hi all, I m working usualli with rb 951... I have a script when router start that calls a custom php that send me an email. Some router restars for unexpected reason. I wold like to crate a logging file and send it.throw email on restart. What logging i should configure to know why it restars? Any e...
Hi, i have sstp connections problems with some clients. I have a SSTP server (CCR9) at office with arround 60 SSTP clients connected. Same scripts clients. With some clients i get connected (Running) SSTP but when i try to connect even ssh or winbox try to connect but once seems to be connected gets...
Hi, on the 6.14 realse: What's new in 6.14 (2014-Jun-06 15:34): *) sntp - 'mode' now is a read-only property, it is set to broadcast if no server ip address is specified; How to do a script that Works with all OS versions. I have a Script working with with <6.14: /system ntp client set unicast=yes e...
rextended Karma added !! Thank's. Works nice. I add HTTPS because i'm working with certificates. A couple of cuestions: Why Works with both mac-cookies and cookies .. may only mac-cookes will be all right ? Why addresses-per-mac=2 ? one more: diferences between idle-timeout and keepalive-timeout ? D...
Is not working for me. Test i've don. 1) Hotspot + No cookies + open status page=always connect wifi (in ip->hotspot-> hosts: shows mac) open browser-captive page-login (ip->hotspot-> active: shows mac) disconnect wifi in ip->hotspot-> hosts: desapear mac ip->hotspot-> active: desapear mac connect w...
Hi everyone ! I have a hotpost running throw wifi. When someone attach to the wifi first time has to open navigator, get redirected to the captive portal log in with user and password and then gets internet. I'm working with cookies 3days. But when someone gets disconnected and come back has to open...
Hi, following with VPN connections.... I allready setup a Windows 7 server and pptp-out connection with mikrotik to Windows 7, Status connected. Local Address : 192.168.100.12 Remote Adress 192.168.100.10. Ok on Windows 7 i can see new connection... Can't see properties, with ipconfig PPP RAS Ip: 19...
Yes, with the captive portal when i intercept a page i know that is a security warning..... But I mean with a normal navigation, redirect from mikrotik dns (hotspot.yyyy.com) to login.yyyy.com and then link to a other page should not apear this warning. I tryed doing it with internet connection and ...
Hi, I have some installations runing with differents mikrotiks RB951 and RB2011 and hotspot. Hotspot Works with SSL certificats and a redirect page to http://login.yyyy.com. Hotspot DSN Name is hotspot.yyyy.com and i have installed into mikrotik hotspot.yyyy.com certificates from an oficial certifie...
Hi, still not success with the cna. I've tryied on rlogin.html and login.html this: $(if user-agent == CaptiveNetworkSupport) <HTML><HEAD><TITLE>Success1</TITLE></HEAD><BODY>Success1-$(user-agent)</BODY></HTML> $(elif user-agent == Mozilla) <HTML><HEAD><TITLE>Success2</TITLE></HEAD><BODY>Success2-$(...
Hi, is not working trying all the convinations with "" with '' with /1.0 with //1.0 .... But is not getting any difference. If I write only the HTML code with Success then the CNA is not opening. I've seen with openWRT the next behavior that i think is the BEST solution. 1) Connects WIFI 2...
Thank's a lot. 1) Continuing tan point. What's best... to configure all my routers ... Restore Backup (that some times does't work fine ... rename wlan1 with wlan2) or do an import (what about the mac?) Then i have to resotore with my configuration and assign a user to each router manually.... and t...
Hi everyone.... I've been working for a while with RouterOS and RB951-2n ... And I have some questions: 1) It's time to install diferents routers (more than 100) in diferents places. I wold like to know wich is the best option to get remote connection to all of them. I have a dinamic IP but solved w...
Yes i have two IPHONEs one with IOS 7.0 second with IOS 7.0.4 I was tryiing to get it working with the link-redirect but i don't know how to use a variable on mikrotik. My idea is (because i want to popup ONCE the iPhone window to tell user go to safari)--> i've seen it in other hotspots (don't know...
Hi, i'm using this urls and Works ok .... (may you can get out some of them). /ip hotspot walled-garden add dst-host=*.googleapis.com add dst-host=*.googleusercontent.com add dst-host=facebook.com add dst-host=*.facebook.com add dst-host=*.google-analytics.com add dst-host=*.google.com add dst-host=...
Hi, i'm looking for the same solution. With Mikrotik 951 2n and hotspot active when some user attach to the wifi and surf the net with a https:// an error apears and doesn't redirect to de login page. The redirection is working perfect with http:// Seams a bug that has to be fixed ? By the way, may ...